Evert Timberg
14c2cf56d1
Merge pull request #1728 from ashayas/bugfix/1722
...
Realized minRotation not needed, removed as an option and removed from tests
2015-12-02 07:30:55 -05:00
npsecoding
164671ffeb
Realized minRotaion not needed, removed as an option and removed from tests
2015-12-01 22:29:19 -08:00
etimberg
f609452727
Allow the user to change the time label display formats
2015-11-30 20:42:48 -05:00
Evert Timberg
a90aac7b26
Change scale show
properties to display
and update tests
2015-11-24 19:18:15 -05:00
Evert Timberg
7b719e6432
Modify layout service to be able to place horizontal boxes as either full width or not full width. Currently the legend is the only full width box we have. Scales were modified so as not to be full width, however Core.Scale can handle boxes that are full width.
...
Updated unit tests to use correct 'boxes' property of chart instance. Tests did not require numerical updates!
Added a test to cover placing a full width box.
2015-11-21 10:51:32 -05:00
Evert Timberg
2a9b3e5221
Merge branch 'v2.0-dev' into v2.0-legend
...
Conflicts:
src/core/core.controller.js
2015-11-21 09:23:33 -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
e00f9d5790
Fix tests
2015-11-17 18:38:19 -05:00
Tanner Linsley
5a80b9e501
Merge pull request #1645 from nnnick/fix/null-callback
...
Hide lines for which the tick label callback returns null or undefined
2015-11-16 16:10:16 -07: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
Tanner Linsley
937d866bd3
Merge pull request #1647 from nnnick/fix/1324
...
Fall back to line settings for points if necessary
2015-11-16 16:09:53 -07:00
Evert Timberg
0495e45ff7
Can now skip in all cases (start, mid, end) whether or not there is a look
2015-11-15 11:16:41 -05:00
Evert Timberg
9c78de10ba
Fix line tests. Still need to add tests of the skip code.
2015-11-14 23:16:07 -05:00
Evert Timberg
37249e4375
Fix an incorrect test setup
2015-11-14 22:52:10 -05: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
f85ffbc09c
Use the dataset backgroundColor, borderWidth, and borderColor, if specified, for points. Added tests for this case.
2015-11-13 11:21:44 -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
1e4894d625
Test for skipping drawing
2015-11-11 21:49:07 -05:00
Evert Timberg
972ceb24e6
Fix tests
2015-11-07 09:40:41 -05: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
29002b2efb
Fix old scaleService tests that are now testing the layoutService
2015-10-31 13:10:06 -04:00
Evert Timberg
e8f80ca211
Rename test file
2015-10-31 13:08:36 -04:00
Evert Timberg
07b052cfab
Tests for suggestedMin and suggestedMax options
2015-10-31 11:40:51 -04:00
Tanner Linsley
85572d7b67
element.line.js now passes tests
2015-10-26 19:40:52 -06: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
6adf39e233
radialLinear scale tests now expect rounded values
...
The rounding problems compounded in a few areas (like the
distanceFromCenter function and drawingArea property). Those are now
more accurate.
2015-10-24 01:25:00 -06:00
Tanner Linsley
e7b71aa909
Line element and controller tests now coincide with the latest skipNull refactor
2015-10-24 01:23:51 -06:00
etimberg
f22c0f3322
Fix tests affected by changes to default label formatter
2015-10-23 22:11:59 -04:00
etimberg
0c3d9ec5dd
Improved number format function. Also improved the generation of small tick values
2015-10-23 22:00:59 -04:00
etimberg
965d74e34a
Time scale test fix for optional labels
2015-10-21 21:00:13 -04:00
etimberg
854c1af45e
test fix
2015-10-21 20:47:22 -04: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
Evert Timberg
351ccaf2f2
Fix 2 test fails
2015-10-20 20:12:56 -04:00
Evert Timberg
5495a34d02
Fix 2 fails due to a bug fix for the scale label colour.
2015-10-18 19:57:06 -04:00
Evert Timberg
d0475b8052
Down to 3 test failures
2015-10-18 19:48:57 -04:00
Tanner Linsley
e0918817ae
Testing fixes for time scale
2015-10-16 21:14:07 -06: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
aaec5efd52
Scales will only consider visible datasets when calculating data max and min values
2015-10-07 19:37:53 -04:00
Evert Timberg
77faacb467
Removed the line scale override file since functionality no longer directly exists. Updated the core scale drawing with tighter padding & better drawing when on top. Updated tests
2015-09-27 21:34:16 -04:00
Evert Timberg
db3b5c1735
Fix broken helper test
2015-09-27 19:40:38 -04:00
Evert Timberg
7a0803cfd7
Fix line controller tests
2015-09-27 19:19:21 -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
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
Evert Timberg
2e2bbc9d52
Start to clean up the linear scale tests
2015-09-24 18:54:56 -04:00
Evert Timberg
4e536c523e
Test missed in last check-in
2015-09-21 21:00: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
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
Evert Timberg
54858b921d
More linear scale tests
2015-08-31 20:42:29 -04:00
Evert Timberg
02e0f3f856
Check some more data on the linear scale after fitting
2015-08-30 21:50:41 -04:00
Evert Timberg
c8d5856216
Start testing the linear scale fit code
2015-08-30 21:49:39 -04:00
Evert Timberg
702b9553e7
More helper tests
2015-08-30 20:46:26 -04:00
Evert Timberg
bb0a8991df
Core element tests
2015-08-30 20:17:24 -04:00
Evert Timberg
ce623075e3
Add line controller tests. Fixed an issue when the number of data points changes. When adding the tension to a point, get the same tension as the line if it has been overridden at the dataset level. When setting the hover style of a point, allow setting the radius independently of the regular radius. Use the hoverRadius property in point.custom or the dataset.pointHoverRadius. Allow setting the border width independently at the dataset level. Use dataset.pointHoverBorderWidth. This can be an array or a number.
2015-08-30 17:42:42 -04:00
Evert Timberg
8e9de00529
Doughnut controller tests
2015-08-30 14:56:48 -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
Evert Timberg
eadfbbee6f
Initial line element tests. Did not test the skipNull functionality since it seems to be broken.
2015-08-29 14:16:37 -04:00
Evert Timberg
17c075eb0e
Arc element tests
2015-08-29 12:31:44 -04:00
Evert Timberg
26684b6371
Rectangle element tests
2015-08-29 08:53:42 -04:00
Evert Timberg
f9a9e6bfb7
Do mock context properties better
2015-08-28 23:20:01 -04:00
Evert Timberg
c09414cc40
First set of tests for point. Started on a mockContext object for testing. Still need to handle property setting better (fillStyle, strokeStyle, etc)
2015-08-28 23:09:58 -04:00
Evert Timberg
371bc8913f
Start writing tests for core.helpers. Fix a number of small bugs found during testing
2015-08-28 22:32:56 -04:00
Evert Timberg
92f1c65c1c
Install coverage metrics. Use gulp coverage
to generate coverage reports
2015-08-28 19:02:37 -04:00
Evert Timberg
e6dc2fd6ab
Initial scale tests
2015-08-23 17:17:46 -04:00