Evert Timberg
18f77db362
fix linting again
2016-12-16 22:24:12 -05:00
Evert Timberg
00d3c5a282
fix linting
2016-12-16 22:20:18 -05:00
etimberg
6f40d04964
Fix infinite loop in logarithmic tick generation
2016-12-07 18:47:30 -05:00
etimberg
58afbe428c
Properly use the ticks.padding option. To correctly fix the issue, the default padding was changed from 0 to 10. This change caused all of the test changes since the width of a vertical scale was lowered by 10px
2016-11-20 11:52:08 -05:00
Evert Timberg
5dd1c77cf5
Take vertical padding into account
2016-11-18 17:58:07 -05:00
Evert Timberg
eaf109c2b1
When an axis needs padding due to a long, rotated, label it should be added inside the layout system rather than in each axis.
2016-11-18 17:58:07 -05:00
Zach Panzarino
766ca49cd0
Extend eslint to test files ( #3473 )
...
* Add eslint to test files
* Fix mockContext for tests
* Make formatting look better for nested objects
2016-10-16 17:34:59 -04:00
Evert Timberg
62ef40ebf6
skip non finite data points when determining scale sizes. Fixes #3125
2016-09-24 12:19:49 -04:00
Simon Brunel
4901471445
Automatically expose custom Jasmine matchers
2016-09-08 23:32:47 +02:00
Simon Brunel
efb82d93d8
Auto-release charts if not persistent (tests)
...
For convenience, charts are now automatically released after each spec if they are not acquired using `persistent: true`. Also remove the confusing and error prone `chartInstance` global variable and make sure that chart instances are local to each spec.
2016-09-08 23:32:43 +02:00
Karthik Iyengar
349a8a33ea
Added borderDash support for grid lines ( #3136 ) ( #3142 )
...
* Added borderDash support for grid lines (#3136 )
* Save and restore context to prevent border dash being applied to other elements
* Adds support for borderDashOffset, checks for setLineDash (IE9/IE10)
* Fixes tests
2016-08-12 12:31:54 -04:00
Ekaterina Dontsova
31197978b7
Fix #2966 : 0 values in logarithmic scale for line and vertical bar charts ( #3016 )
2016-08-11 21:40:25 +02:00
Ceane Lamerez
456ab9ca36
Fix #2574 - Add support to hide border on the chart
2016-05-17 21:35:19 +02:00
Tom Duncalf
7ee5af81af
Add labelOffset option to scales
2016-05-11 10:43:22 +01:00
Tom Duncalf
3bef974c25
Add minRotation support
2016-05-10 12:33:36 +01:00
Evert Timberg
6df9b24ecd
Merge from feature/pan-support
...
All tests are passing
2016-04-29 20:03:15 -04:00
Simon Brunel
a93b3f45ac
Fix helpers, layoutService and logarithmic tests
2016-04-26 22:44:53 +02:00
Evert Timberg
bc90aaa522
Start on pan support
2016-04-21 07:48:47 -04:00
Evert Timberg
fac92448ff
Update tests for new config option
2016-04-16 21:49:08 -04:00
Tanner Linsley
4f60eecc01
Better default tick rotation and tick autoskip settings ( #2258 )
...
* Better default tick rotation and tick autoskip settings
* scale.time: Use ctx to measure label, and <= instead of < for unit fitting
* Test Changes
* Passing Tests with new defaults
2016-04-16 17:38:03 -05:00
Evert Timberg
8d5b3809f6
Fix global font settings
2016-02-28 13:41:17 -05:00
Evert Timberg
d16f4fc5ce
Add default font options
2016-02-01 21:06:54 -05:00
Evert Timberg
c312835eb1
Add some tests for scales. Cleaned up some minor bugs in the time scale. Wrote better helpers for helpers.min
and helpers.max
2016-01-23 12:44:55 -05:00
Tore Lervik
0437968a4e
Fixed broken tests
2015-12-21 23:47:38 +01:00
Evert Timberg
63b14dc2a9
Merge pull request #1810 from olyckne/fix/ticks_callback
...
Fix ticks callback and auto skip
2015-12-21 08:23:55 -05:00
Mattias Lyckne
dec4a5f57a
Fix tests
2015-12-21 08:43:48 +01:00
Evert Timberg
c8d3831152
Split out data limits step of scales into it's own step. Wire up callbacks from the options to those in the scale life-cycle. Updated the docs accordingly
2015-12-17 09:21:04 -05:00
Evert Timberg
cddfba1676
Better test
2015-12-15 19:33:38 -05:00
Evert Timberg
274897fc24
Fix tests
2015-12-15 19:30:09 -05:00
Mattias Lyckne
968db4e783
Adds min and max setting to axes
2015-12-14 09:22:34 +01:00
npsecoding
164671ffeb
Realized minRotaion not needed, removed as an option and removed from tests
2015-12-01 22:29:19 -08:00
Evert Timberg
a90aac7b26
Change scale show
properties to display
and update tests
2015-11-24 19:18:15 -05:00
Evert Timberg
ead6247cd8
Make sure data is converted to a number in scales when determining min and max. Add tests for this condition to linear, radialLinear, and logarithmic scales.
2015-11-17 18:43:18 -05:00
Evert Timberg
66bc1dc492
Reference data from the main controller wherever possible. Updated tests to account for this.
2015-11-13 09:38:35 -05:00
Evert Timberg
4267d01bc2
Log scale + tests
2015-11-01 09:07:18 -05:00
Evert Timberg
d0475b8052
Down to 3 test failures
2015-10-18 19:48:57 -04: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
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
2e479e4589
Update tests for new scale labels
2015-09-20 19:41:48 -04:00
Evert Timberg
9fecb37e30
Update tests for new config options
2015-09-20 19:06:34 -04: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