Pascal Richier
97da3347be
Add options.ticks.maxTicksLimit
...
To be able to change default '11' value
2015-11-07 01:37:09 +01:00
Evert Timberg
4267d01bc2
Log scale + tests
2015-11-01 09:07:18 -05:00
Evert Timberg
8324b35506
Update linear scale + tests
2015-11-01 08:45:12 -05:00
Evert Timberg
cf587122da
Merge pull request #1586 from nnnick/fix/begin-at-zero-issue-with-constant-data
...
Scale expansion if min === max will only occur after ticks.beginAtZero is handled
2015-10-31 20:23:57 -04:00
etimberg
3aaa3e27f3
suggestedMin and suggestedMax options for scales
2015-10-31 11:01:40 -04:00
etimberg
1017934dce
tooltips for radar charts are working
2015-10-30 20:35:36 -04:00
etimberg
988034cef6
Scale expansion if min === max will only occur after ticks.beginAtZero is handled
2015-10-27 20:04:21 -04:00
Tanner Linsley
559ee6291e
Merge pull request #1567 from nnnick/fix/rounding
...
Better linear scale tick formatter + small tick generation
2015-10-24 01:40:43 -06:00
Tanner Linsley
2cd4b13135
radialLInear getPointPosition now rounds crazy decimals
...
This particular part of testing was succeeding in chrome, and failing
in firefox. It should be rounded anyway.
2015-10-24 01:23:13 -06:00
etimberg
0c3d9ec5dd
Improved number format function. Also improved the generation of small tick values
2015-10-23 22:00:59 -04:00
Tanner Linsley
ea571003d9
Scale min/max calculations now disregard bad values
2015-10-23 16:41:11 -06:00
etimberg
24e8fe3a4b
Merge remote-tracking branch 'origin/v2.0-dev' into v2.0-dev-tooltip-refactor
2015-10-21 20:18:23 -04:00
etimberg
e46a2cb074
Fix JSHint errors
2015-10-20 20:33:51 -04:00
Tanner Linsley
35011e5ae3
Support min and max dates on time scale
2015-10-19 21:23:01 -06:00
etimberg
bfabac945f
Labels are now optional for the time scale.
2015-10-19 19:20:08 -04:00
Evert Timberg
86a52d0302
Fix some test failures
2015-10-18 19:34:56 -04:00
etimberg
2b057cf690
Merge remote-tracking branch 'origin/v2.0-dev' into v2.0-dev-tooltip-refactor
2015-10-18 18:17:39 -04:00
etimberg
7603b3cc36
Time scales now support passing in data as points. Added this to the time scale sample file.
2015-10-18 18:00:46 -04:00
etimberg
180209e55c
Factor out getLabelForIndex
into each scale so we can return appropriate data based on the scale type
2015-10-18 16:13:57 -04:00
Tanner Linsley
e0918817ae
Testing fixes for time scale
2015-10-16 21:14:07 -06:00
Evert Timberg
aaec5efd52
Scales will only consider visible datasets when calculating data max and min values
2015-10-07 19:37:53 -04:00
Tanner Linsley
ef5cec7f5e
Tooltips now using new lineArray format
2015-10-06 20:40:25 -06:00
Tanner Linsley
e24406fc9d
Ensure tickUnit and displayFormat set before format loop
2015-09-29 10:54:42 -06:00
Tanner Linsley
1bdf5edc24
Time Scale now requires and warns for Moment.js dep
2015-09-28 11:27:47 -06:00
Evert Timberg
bc7d1d39fd
Convert the radialLinear scale to derive from Core.scale. Radial linear scale is now fit using the scale service. Added tests for the radialLinear scale.
2015-09-27 11:58:20 -04:00
Evert Timberg
be4facdea9
Time scale tests.
2015-09-27 09:38:11 -04:00
Evert Timberg
5156e633ca
Category scale tests
2015-09-26 16:52:14 -04:00
Evert Timberg
3d1e1b1605
Updated core.scale draw code with minor improvements and features that broke during integration (such as mirror option for labels). Updated linear and logarithmic tests. Update config merge to use scaleMerge since it prevents overriding the default entirely.
2015-09-25 21:04:45 -04:00
Evert Timberg
cf944ae651
Make sure ticks are converted to strings. Handle this in the core. Updated linear scale tests & fixed some minor issues. Only 3 fails now in the linear scale.
2015-09-24 22:08:25 -04:00
Tanner Linsley
4c2027aabb
Horizontal Log Scale
2015-09-24 12:59:03 -06:00
Tanner Linsley
440703efff
Log Scale Working Again
2015-09-24 12:31:18 -06:00
Tanner Linsley
d198157fb8
Time Scale working, troubleshooting log scale
2015-09-24 12:07:40 -06:00
Tanner Linsley
ca48caa8b0
checkpoint for the morning check
...
made some good progress. Just need some more eyes on it, cuz I’m
literally typing without my glasses on right now.
2015-09-24 02:25:21 -06:00
Tanner Linsley
e2a96501b7
Vertical Scales are a bit better now
2015-09-23 23:23:20 -06:00
Tanner Linsley
c7107677d2
Stuck on shared vertical scale draw logic
...
Trying to make all scales share the same draw function for both
horizontal and vertical. For some reason the vertical linear scale on
line.html has a width that is too small
2015-09-23 21:52:31 -06:00
Tanner Linsley
9b9ebca246
Checkpoint 1, Pew!!!!
2015-09-22 19:31:26 -06:00
Tanner Linsley
301efac8dd
Merge pull request #1477 from etimberg/feature/scale-labels
...
Scale Labels
2015-09-21 17:52:09 -06:00
Tanner Linsley
8c94ae0441
Ensure bar width at least 1px
2015-09-21 13:17:27 -06:00
Tanner Linsley
01fdd387d9
Merge pull request #1474 from nnnick/v2.0-feature-dynamic-bar-spacing
...
Bar spacing is now dynamic at small sizes.
2015-09-21 13:08:09 -06:00
Tanner Linsley
e3e66d2425
Time scale support
2015-09-21 13:04:41 -06:00
Tanner Linsley
154083b875
Bar spacing is now dynamic at small sizes.
...
Closes #1468
2015-09-21 12:57:04 -06:00
Tanner Linsley
2a76ff0037
Time scale now draws all ticks, instead of half of them
...
Closes #1463
2015-09-21 11:52:17 -06:00
Evert Timberg
f4cdd20a38
Time scale has a label now
2015-09-20 19:24:46 -04:00
Evert Timberg
b7c7f1d6a4
Category scale has labels
2015-09-20 19:18:59 -04:00
Evert Timberg
2667807c1d
Logarithmic scale now has labels
2015-09-20 19:06:09 -04:00
Evert Timberg
b1060f20ec
Linear scale has labels
2015-09-20 18:59:58 -04:00
Tanner Linsley
862045e49a
Merge pull request #1465 from nnnick/v2.0-dev-time-scale-bars-and-combo
...
Bar and combo support for time scale
2015-09-18 18:59:58 -06:00
Tanner Linsley
677c249b61
Bar and combo support for time scale
2015-09-18 11:31:25 -06:00
Evert Timberg
723c85320f
Unit tests for logarithmic scale. Fixed some issues in stacked mode since it's not possible for a 0 crossing to occur with a log scale.
2015-09-17 20:29:41 -04:00
Tanner Linsley
92682abbae
Merge pull request #1459 from nnnick/v2.0-dev-feature-time-axis
...
V2.0 dev feature time axis
2015-09-17 15:54:44 -06:00
Tanner Linsley
2598446d54
Time Scale Rewrite
2015-09-15 11:40:01 -06:00
Evert Timberg
eb657bce36
Hide labels when the user returns null from the userCallback. This is the same as the category scale
2015-09-14 20:34:49 -04:00
Evert Timberg
c1f0a39982
Fixes to show all lines but not all labels. Added a variable in the template function to make debugging nicer.
2015-09-14 20:32:23 -04:00
Evert Timberg
b172a382f1
Remove dead code in logarithmic scale. Fixed a padding bug that had previously been fixed in the linear scale
2015-09-14 19:45:13 -04:00
Evert Timberg
77f90a85ef
Merge remote-tracking branch 'upstream/v2.0-dev' into feature/logarithmic_scale
2015-09-14 18:59:52 -04:00
Tanner Linsley
88d30d8c93
Let tooltips use time formatted labels if they exist
2015-09-11 12:20:32 -06:00
Tanner Linsley
c2a7e4c251
Time Scale Base
2015-09-10 22:48:48 -06:00
Evert Timberg
4d51f21831
Merge pull request #1436 from honza889/reverse-radar
...
Reverse scale on radar / polar area
2015-09-02 17:46:35 -04:00
Jan Kalina
ef539bf4a7
Reverse scale on radar/polar area
2015-09-02 23:21:39 +02:00
Evert Timberg
c8d5856216
Start testing the linear scale fit code
2015-08-30 21:49:39 -04:00
Tanner Linsley
bc3948ce59
Merge pull request #1408 from etimberg/feature/unit-test
...
Initial unit test framework + linear scale test starting point
2015-08-28 16:26:10 -06:00
Tanner Linsley
bade753fe3
Don't account for paddingLeft until after rotated
2015-08-28 15:12:35 -06:00
Evert Timberg
b4b3bf60b8
Remove wrong addition of padding
2015-08-23 17:17:21 -04:00
Evert Timberg
04d1f0f710
Category scale filter function will hide the grid line if null
or undefined
returned.
2015-08-23 13:20:43 -04:00
Evert Timberg
02abc46d5e
Count the number of bars when determining the bar width
2015-08-22 16:56:02 -04:00
Evert Timberg
de413294ca
Category scale now takes a smaller size if no labels are being displayed.
...
Updated linear scale code to use proper bottom padding. This is important when not displaying x axis labels
2015-08-22 14:30:30 -04:00
Evert Timberg
dd62944b79
Fix bracket placement
2015-08-15 10:54:34 -04:00
Fabian Strachanski
94c1ec4b84
Fix for #1373
2015-08-13 10:50:56 +02:00
Evert Timberg
eb833723cd
initial logarithmic scale
2015-08-08 18:34:19 -04:00
Evert Timberg
87ac933c10
Linear scale has proper padding in both vertical and horizontal orientations. Should prevent labels from getting cut off even when axes are not displayed.
2015-08-08 11:52:20 -04:00
Michaël Gallego
0c6f37fff7
Add support for mirror option
2015-08-05 17:40:44 +02:00
Tanner Linsley
452ef8b6e7
No Logs
2015-08-03 13:06:53 -06:00
Tanner Linsley
68b22562d9
DatasetWidth now incorporates chartPaddingLeft
2015-08-03 13:06:40 -06:00
Tanner Linsley
d3ffc7aec1
Auto Skip Labels Attempt 1
2015-07-06 22:28:05 -04:00
Evert Timberg
6110352df8
Add userCallback to category scale + demo file
2015-06-22 19:03:01 -04:00
Evert Timberg
48be4edbdd
Category scale label rotation improvements
2015-06-19 20:24:14 -04:00
Evert Timberg
2dd49f0c92
Fix a missing this
in the scale generateTicks
method when manually overriding. Added a sample to test this.
2015-06-19 19:13:31 -04:00
Tanner Linsley
539af61e1f
Proper stacking order for stacked area charts
2015-06-19 14:23:05 -06:00
Tanner Linsley
8cecd5935e
Tooltip Title width now accurately measured
2015-06-19 12:36:22 -06:00
Evert Timberg
056b9550d0
Create interfaces similar to the old interfaces. Ensure that scales always have IDs before controllers are built.
2015-06-16 19:20:26 -04:00
Tanner Linsley
088b4fcc55
Fixed: scale.linear range min==max resulted in no scale
2015-06-16 12:04:52 -06:00
Derek Perkins
0d5f282349
Merge pull request #1219 from etimberg/feature/controllers
...
Controller Driven Charts
2015-06-16 10:50:31 -06:00
Tanner Linsley
c0ccae1031
No logging
2015-06-16 00:20:22 -06:00
Tanner Linsley
2d5eb6d57e
Radar chart and radialLinear scale
2015-06-16 00:17:26 -06:00
Tanner Linsley
42648d0a83
Build radial scale details inside itself
2015-06-15 23:59:04 -06:00
Evert Timberg
76d2a782fc
Linear scale is reversible
2015-06-15 17:31:29 -04:00
Evert Timberg
81c66c8d85
Fix duplicate property
2015-06-14 17:05:46 -04:00
Evert Timberg
8c34bdbcd7
Clean up of radial linear scale. Radar chart update function improvements
2015-06-13 17:45:59 -04:00
Evert Timberg
ecd3b58b28
Fix typo in linear scale.
2015-06-13 14:47:13 -04:00
Evert Timberg
47b25d1c6d
Move linearRadial default config to be a property of the scale.
2015-06-13 14:16:01 -04:00
Evert Timberg
109de75c6a
Create linear scale default settings. Cleaned up unnecessary settings from bar, line, and scatter default configs. Removed unnecessary config options from the affected sample files
2015-06-13 13:57:55 -04:00
Evert Timberg
faa43d51a9
Category scale now has defaults. Updated the bar & line charts to use this new default.
2015-06-13 13:25:41 -04:00
Evert Timberg
1f16b349d2
Merge Chart.scales
into Chart.scaleService
to be consistent
2015-06-13 09:55:43 -04:00
Evert Timberg
30019dfddd
Move some of the radial linear scale functions into the radialLinear scale
2015-06-13 09:51:28 -04:00
Evert Timberg
6815fc451f
Merge remote-tracking branch 'upstream/v2.0-dev' into feature/v2.0-scale-refactor
2015-06-13 08:35:34 -04:00
Tanner Linsley
0486db1e74
Category Scale display false fixes
2015-06-13 00:30:42 -06:00
Evert Timberg
6185f156ea
Make the line and scatter charts almost identical. Next step is to merge them
2015-06-12 22:35:48 -04:00
Evert Timberg
e55c0d4945
Push some of the scatter scale information down to the linear scale.
2015-06-12 21:46:47 -04:00
Evert Timberg
d2ef4c9831
Move more data into the linear scale.This simplifies buildScale
for line and bar charts
2015-06-12 21:15:15 -04:00
Evert Timberg
ec7b87d69c
Move some functions into the category scale. This cleans up the bar chart interface & allows for waterfall charts by settings stacked
to false on the category axis but stacked
to true on the y axis
2015-06-12 20:50:26 -04:00