24 Commits

Author SHA1 Message Date
Ronny Roeller
f6d626ac49 Support styling the current text 2017-11-13 16:34:32 +01:00
Ronny Roeller
3cca880fd9 Support meters without a goal text 2017-11-13 16:29:27 +01:00
Tomasz Pluskiewicz
3f13628371 Fix mistake in type-text width (#4) 2017-07-18 00:04:24 +02:00
Tomasz Pluskiewicz
0a479083d7 use element variables instead of consts to control when progress changes color 2017-07-17 13:27:00 +02:00
Tomasz Pluskiewicz
04d848b545 Use css to calculate font sizes (#2)
* use css to calculate font sizes

* change test to check computed style

* adjust styles

* unify css properties, fix typo, add docs

* fix goofy mistake
2017-07-17 13:11:19 +02:00
Claudia Minardi
766f72c960 Add documentation for custom styling properties 2016-02-19 16:17:08 +01:00
Claudia Minardi
26a313e59b Enclose properties in double quotes 2016-02-19 16:07:19 +01:00
Claudia Minardi
0d10b77379 Use custom CSS properties to allow color customization 2016-02-19 16:05:52 +01:00
Claudia Minardi
d83a7c4aab Use $= instead of = to bind to the 'hidden' attribute 2016-02-19 15:09:48 +01:00
Claudia Minardi
657ddccd8d Remove unnecessary initialization of variable 2016-02-19 14:53:05 +01:00
Claudia Minardi
95e3244086 Add the possibility of setting a caption
The caption is secondary text, displayed under the type
2016-02-19 14:13:50 +01:00
Claudia Minardi
011028fccd Add doctype 2016-02-19 13:53:52 +01:00
Claudia Minardi
83b85a9d43 Set colors programmatically, so users can specify custom colors
Allow users to provide the background color (for the inner circle) and the colors for the progress bar. Keep the defaults in case none were provided.
2016-02-19 13:44:24 +01:00
Ronny Roeller
608f39d821 Follow naming convention: private properties are prefixed with
underscore
2015-12-30 22:58:22 +01:00
Ronny Roeller
e449889795 Add Polymer doc 2015-12-30 22:55:49 +01:00
Ronny Roeller
016b945239 Add separate background circle 2015-09-30 12:00:59 +02:00
Ronny Roeller
13bf8f89a2 Add different progress colors for 1/3, 2/3, 3/3 percentange 2015-09-30 11:57:15 +02:00
Ronny Roeller
94304cf9d7 Limit length of type text 2015-09-22 16:30:59 +02:00
Ronny Roeller
9e3ff9ef7d Merge branch 'master' of https://github.com/Collaborne/d3-progress-meter.git 2015-09-16 10:54:44 +02:00
Ronny Roeller
2ec28073eb Split goal and type text 2015-09-16 10:52:56 +02:00
Ronny Roeller
361d612336 Bind 'this' to the function instead of defining a shared variable 2015-09-15 16:09:49 +02:00
Ronny Roeller
da0275eedc Allow to manually define the current and total text 2015-09-14 15:57:28 +02:00
Ronny Roeller
c9932614d7 Support multiple progress meters on one page 2015-09-13 22:38:16 +02:00
Ronny Roeller
5bd69c6c47 Initial commit 2015-09-12 23:46:33 +02:00