etimberg
7756bedec6
fix stacked bars on logarithmic axes
2016-12-18 09:11:58 -05:00
Toshiki Saito
bdcdbc2abf
Fixed miscalculation of Bar width.
...
for Bar and horizontalBar type,
include stacked scale.
issue #3589
2016-12-02 07:57:59 -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
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
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
Evert Timberg
7ca5f91b10
Fix bar and line controllers to convert strings to numbers when considering the values for stacking the chart. Simplified the base calculation for the bar charts and added test coverage to ensure that strings will work correctly.
2016-07-06 18:22:42 -04:00
Simon Brunel
eb14481d02
Fix legend tests and disable other failing tests
2016-04-27 19:58:36 +02:00
Simon Brunel
e0353dac98
Fix bar, bubble, doughnut, and polarArea tests
...
Also replace the 2 spaces indentation in controller.bar.tests.js by tabs to match the overall code style.
2016-04-26 12:46:34 +02: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
Ivan Samoylenko
f5bb8e25d5
Fixed bar.controller tests
2016-03-13 19:10:49 +03:00
Evert Timberg
d0b67c603b
Line and bar test updates
2016-01-24 10:58:30 -05:00
Evert Timberg
46861c9f0b
Update bar controller tests
2016-01-09 09:58:14 -05:00
Evert Timberg
283f1d7387
Update check to new system + fix tests
2015-12-17 09:31:01 -05:00
Evert Timberg
139cbe1c64
All dataset controllers now inherit from a common base class Chart.DatasetController. This makes writing external controllers much easier
2015-12-13 14:35:40 -05:00
Tanner Linsley
ae9db841f9
Merge pull request #1646 from nnnick/fix/1640
...
Can now replace entire chart data object on the fly
2015-11-16 16:10:01 -07:00
Evert Timberg
7f34d8dd2f
Always include padding to ensure that we can always see the tick labels of vertical axes
2015-11-13 13:24:22 -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
etimberg
f22c0f3322
Fix tests affected by changes to default label formatter
2015-10-23 22:11:59 -04:00
Evert Timberg
e39298db3c
Before labels can rotate, we need the appropriate left, right, top, & bottom attributes of the scale set with default values so that tick spacing can be determined. After ensuring that this happens, tests needed to be updated. Added unit testing for the scale service.
2015-10-13 11:43:00 -04:00
Evert Timberg
b36c8ff788
Update controllers to handle datasets that are not visible
2015-10-07 19:54:11 -04:00
Evert Timberg
4fd30e0c75
Last bar controller test fixes
2015-09-27 18:29:54 -04:00
Evert Timberg
80b2ffe3ee
Fix bar controller unit tests
2015-09-27 18:28:09 -04:00
Evert Timberg
416a6ac1bd
Remove unneeded functions from core controller. Updated dataset controllers to have a separate function to update the meta data for each dataset
2015-09-21 20:59:53 -04:00
Evert Timberg
fcad4de670
Finish up bar controller tests
2015-08-30 10:42:00 -04:00
Evert Timberg
471618d287
Initial bar controller tests
2015-08-29 22:27:40 -04:00