Jukka Kurkela
d60f634ff0
Fix automatic min
value of stacked
scale. ( #6851 )
2019-12-19 14:58:23 -05:00
Evert Timberg
c8bdca62e8
Move all helpers to src/helpers ( #6841 )
...
* Move all helpers into src/helpers
* Move curve helpers to their own file
* DOM helpers moved to their own file
* Update migration docs
* Remove migration docs on new functions
2019-12-17 08:04:40 -05:00
Evert Timberg
374b7491a3
Allow axes to be centered on the chart area ( #6818 )
...
Allow axes to be centered on the chart area or at a dynamic position based on another axis
2019-12-16 18:17:42 -05:00
Ben McCann
e25936648c
Optimize tooltip event handler ( #6827 )
...
* Optimize tooltip event handler
* Address review comments
* Additional cleanup
2019-12-15 08:26:17 -05:00
Ben McCann
2be634a478
Interactions cleanup ( #6825 )
2019-12-14 13:09:50 -05:00
Ben McCann
3baade7862
Tests and fixes for data watching ( #6831 )
...
* Tests and fixes for data watching
* Remove call to _configure
2019-12-13 23:51:59 -05:00
Ben McCann
6f6005d7b8
Shrink _parsed to match if dataset shrinks ( #6826 )
2019-12-10 18:57:21 -05:00
Ben McCann
b7caa2410c
Store parsed data more similarly to provided data ( #6814 )
...
* Store parsed data more similarly to provided data
* Add test
2019-12-08 08:52:11 -05:00
Evert Timberg
5a99dff5f7
Convert src/helpers to use ES6 exports ( #6797 )
...
* Canvas helpers exported
* Easing helpers use exports
* Math helper uses export
* Linting
* RTL options use export
* Allow object spread operator
* Rest of helpers use `export`
2019-12-01 13:28:34 -05:00
Evert Timberg
e6cf2fe8b8
Fix broken tests ( #6780 )
2019-11-22 07:28:31 -05:00
Jukka Kurkela
ce74eb76a1
Convert axis options from arrays to objects ( #6773 )
...
* Convert axis options from arrays to objects
* Updated all chart type defaults
* Throw errors when axis type or position are not specified
* Avoid raising unnecessary errors when merging options into the default configs
* Fix additional tests
* Ensure scale defaults are set if type is not explicitly defined
* Another step
* Include `scale` as `firstIDs.r`
* update docs
* Update for buildOrUpdateScales
* Update migration guide
* Add test back
2019-11-21 18:46:49 -05:00
L M
18e3bc0624
Allow filling above and below with different colors ( #6318 )
...
Two colors allowed : first one to fill above the target, second to fill below
Tests added
Docs edited
2019-11-21 13:48:31 -05:00
Jukka Kurkela
1a9db4783c
Remove _ctx from Element ( #6764 )
...
* Remove _ctx from Element
* Sort
2019-11-19 19:01:32 -05:00
Ben McCann
edbeaac29f
Remove _getPixelForOffset ( #6763 )
...
* Remove _getPixelForOffset
* Update migration guide
2019-11-19 07:09:50 -05:00
Jukka Kurkela
eb0751c6d0
Point cleanup ( #6755 )
...
* remove steppedLine from Point
* Remove tension from Point
* Migration guide, private
2019-11-17 20:28:13 -05:00
Jukka Kurkela
1d84251ded
Fix tick range options in tests ( #6748 )
2019-11-15 13:14:01 -05:00
Jukka Kurkela
7f97adf5a0
Move scale defining options up from ticks
( #6738 )
...
* Move scale defining options up from `ticks`
* Include `ticks.reverse` in v3-migration
2019-11-15 12:11:13 -05:00
Jukka Kurkela
931d686adb
Float bars: data as objects ( #6739 )
...
Float bars can be specified in object data points
2019-11-15 08:40:45 -05:00
Ben McCann
c12ca17e38
Remove unused helpers.canvas.roundedRect ( #6734 )
2019-11-15 07:49:41 -05:00
Ben McCann
cb95a36b94
Fix value passed to getPixelForTick ( #6724 )
2019-11-14 07:15:44 -05:00
Jukka Kurkela
76a89f0922
determineDataLimits optimizations ( #6695 )
2019-11-12 19:24:07 -05:00
Ben McCann
cd8f3846e3
Remove helpers.previousItem/nextItem ( #6727 )
2019-11-12 19:18:58 -05:00
Ben McCann
09ef08acfe
Remove Element _index and _datasetIndex for real this time ( #6726 )
...
* Remove Element _index and _datasetIndex for real this time
* Remove unused _datasetIndex
2019-11-12 19:18:29 -05:00
Jukka Kurkela
30cbdc6a4d
Convert element.line mock tests to fixtures ( #6730 )
2019-11-12 13:59:29 -05:00
Jukka Kurkela
d5b6698d8c
Performance improvements ( #6729 )
2019-11-11 18:28:17 -05:00
Jukka Kurkela
91466ae358
Remove remaingin zeroLine* references ( #6728 )
2019-11-11 12:12:11 -05:00
Ben McCann
49c4761e1b
Don't make legend empty when fill is false ( #6718 )
2019-11-10 20:03:38 -05:00
Jukka Kurkela
11ef1e5e89
Versatile clipping ( #6642 )
...
Versatile clipping algorithm for different chart types
2019-11-10 17:41:01 -05:00
Ben McCann
a3392e0e59
Remove index and datasetIndex from Element ( #6688 )
...
Remove `index` and `datasetIndex` properties from elements.
2019-11-10 07:52:12 -05:00
Evert Timberg
94afa63450
Remove zeroLineIndex functionality ( #6697 )
...
* Remove zeroLineIndex functionality
* Remove docs
* Code review updates
2019-11-07 06:27:49 -05:00
Ben McCann
e42413f3e8
Remove unused model properties ( #6691 )
...
* Remove unused model properties
* Add to migration guide
2019-11-05 18:10:44 -05:00
Ben McCann
7a2160461d
Remove unused Element methods ( #6694 )
2019-11-05 18:09:44 -05:00
Jukka Kurkela
72df272234
Early data parsing, stacking by value and support object data ( #6576 )
...
* Early data parsing + stacking by value
* Review comments
* review comments
* Remove reduntant parsing
* Couple CC warnings
* Optimize filterBetween
* More migration info
2019-11-04 18:07:01 -05:00
Ben McCann
99811328dc
Make all ticks objects ( #6645 )
...
Make all ticks object
2019-10-31 18:45:13 -04:00
Ben McCann
eef153de40
Upgrade dependencies ( #6662 )
2019-10-31 18:03:00 -04:00
RatherLogical
50fd869334
Update tooltip content and styling on update() ( #6635 )
...
Update tooltip content and styling on update()
2019-10-29 06:39:07 -04:00
Jukka Kurkela
0228776e66
Remove deprecated interaction modes ( #6625 )
...
* Remove deprecated interaction modes
* Use default modes
2019-10-28 18:11:38 -04:00
Ben McCann
d932f9c56e
Remove deprecated code from index.js ( #6623 )
...
Remove deprecated code from index.js
2019-10-28 07:03:39 -04:00
Ben McCann
26dc04d25f
Remove deprecated code from time scale and bar chart ( #6622 )
...
* Remove deprecated code from bar chart
* Remove deprecated code from time scale
2019-10-27 18:46:28 -04:00
Jukka Kurkela
d6ba91f732
Remove deprecated code from animations and core ( #6624 )
2019-10-27 18:28:47 -04:00
Jukka Kurkela
5b0a0b039c
Time scale: return time from getValueForPixel ( #6616 )
2019-10-27 16:36:57 -04:00
Ben McCann
08d133817b
Remove xLabel and yLabel from tooltip and chart and scales from element ( #6606 )
...
* Element should not have reference to chart
* Remove scales from element
* Remove deprecated xLabel and yLabel
2019-10-27 16:35:15 -04:00
Ben McCann
92a4654d9b
Remove deprecated helpers ( #6607 )
2019-10-27 16:33:44 -04:00
Ben McCann
0da237a315
Remove undocumented "custom" feature ( #6605 )
...
Remove undocumented "custom" feature
2019-10-27 16:33:21 -04:00
Jukka Kurkela
0de668b46f
Fix line / non-numeric-y ( #6617 )
2019-10-27 15:05:23 -04:00
Jukka Kurkela
29de4aff21
Don't use deprecated options in tests ( #6609 )
2019-10-27 09:15:53 -04:00
Ben McCann
21da5be3c6
Fix horizontalBar deprecation warnings ( #6603 )
...
Fix horizontalBar deprecation warnings
2019-10-26 12:48:48 -04:00
Jukka Kurkela
333118bff6
Hover styling for dataset in 'dataset' mode ( #6527 )
...
* Hover styling for dataset in 'dataset' mode
2019-10-25 13:22:37 -04:00
Ben McCann
9ff1c845f2
Bar options should not be defined on scale ( #6249 )
...
* Bar options should not be defined on scale
* Improve minimization
* Add tests
* Multiple datasets in test
2019-10-25 12:17:41 -04:00
Ben McCann
f606c23f2f
Fix unit determination when autoSkip is enabled ( #6583 )
2019-10-24 19:21:45 -04:00
Jukka Kurkela
6b6f1a4c51
Implement dataset.order
( #6268 )
...
Allow sorting datasets based on the `order` property
2019-10-22 19:14:54 -04:00
Jukka Kurkela
d3860137fe
Fix logarighmic test to use correct scale ( #6580 )
2019-10-19 16:17:57 -04:00
Ben McCann
69a5082bd6
Make autoskip aware of major ticks ( #6509 )
...
* Make autoskip aware of major ticks
* Address review comments
* Fix codeclimate warning
* Add test for major and minor tick autoskipping
* Revert change for determining _majorUnit and fix sample
2019-10-19 16:13:04 -04:00
Ben McCann
ce8ee02ccd
Reduce indentation by reversing if check ( #6497 )
2019-09-07 10:56:15 -04:00
Ben McCann
df9e2d00bd
Html dom building ( #6490 )
...
Replaces #6179 and builds HTML legend strings using dom nodes rather than building up an HTML string directly.
2019-09-07 07:19:17 -04:00
Akihiko Kusanagi
626d8cc714
Draw the rightmost grid line when offsetGridLines is true ( #6326 )
...
* Draw the rightmost grid line when offsetGridLines is true
* Refactor based on feedback
* Replace helpers.each with for loop
* Minor refactoring
* Refactor _computeItemsToDraw
2019-07-18 18:25:33 -04:00
Jukka Kurkela
cbace1cfe2
Handle reverse support in core.scale ( #6343 )
...
* Move log10 from core.helpers to helpers.math
* Refactor scales
2019-07-15 17:20:16 -04:00
Ben McCann
dd6e007ac1
Add helpers.math._factorize ( #6360 )
...
* Add helpers.math._factorize
* Remove duplicate test statement
2019-07-02 18:22:47 -04:00
Ben McCann
d480e11ea0
Render charts only once in time scale tests ( #6347 )
2019-06-25 18:46:24 -04:00
Akihiko Kusanagi
1c857008a8
Fix getValueForPixel in time scale ( #6328 )
...
* Fix getValueForPixel in time scale
* Minor refactoring
2019-06-22 09:56:31 -04:00
Ben McCann
07109b674b
[performance] replace helpers.each calls with for-loops ( #6301 )
...
* [performance] replace helpers.each calls with for-loops
* Use Math.min/max instead of if statement
* Rename variable
2019-06-22 09:55:46 -04:00
Jukka Kurkela
db6a6d5989
Refactor core.layouts ( #6304 )
2019-06-19 18:08:07 -04:00
Akihiko Kusanagi
e3e80c9ac6
Support spanGaps in radar charts ( #6289 )
...
* Support spanGaps in radar charts
* Minor fixes based on feedback
2019-06-19 07:12:53 -04:00
Akihiko Kusanagi
d81914ea29
Adjust virtical alignment of tooptip items ( #6292 )
2019-06-19 07:11:48 -04:00
Akihiko Kusanagi
bb5f12ad2a
Support object values for bar charts ( #6323 )
...
* Support object values for bar charts
* Check if null or undefined
* Refactor category scale code
* Make isNullOrUndef global
2019-06-19 07:10:03 -04:00
Akihiko Kusanagi
9eecdf4da1
Update dataset metadata when axisID changes ( #6321 )
2019-06-14 11:34:56 +02:00
Akihiko Kusanagi
bf094c59db
Assign unique scale IDs ( #6291 )
2019-06-09 15:45:12 +08:00
Akihiko Kusanagi
70b32ff20e
Support rotation for pointStyle image ( #6287 )
2019-05-24 09:35:47 +02:00
Akihiko Kusanagi
bd3ab17ef7
Add tests and a sample for radar scriptable line options ( #6263 )
...
* Add tests and a sample for radar scriptable line options
* Improve image tests
2019-05-21 18:06:12 -04:00
Jukka Kurkela
abbddd1298
Allow specifying labels in time scale options ( #6257 )
2019-05-21 13:36:16 +02:00
Akihiko Kusanagi
03a3199306
Treat null as NaN in radialLinear scale ( #6282 )
2019-05-21 11:50:38 +02:00
Akihiko Kusanagi
cfcdcccc32
Support boundary filling modes in radialLinear scale ( #6281 )
2019-05-21 11:15:33 +02:00
gwyneblaidd
7d8526f691
Add support for floating bar chart ([start, end]) ( #6056 )
2019-05-21 10:54:13 +02:00
Akihiko Kusanagi
4f04ee5d77
Keep lines on the left and right edges from being cut ( #6285 )
2019-05-20 17:23:54 +02:00
Akihiko Kusanagi
200672a787
Apply lineJoin style at the first point in radar charts ( #6269 )
2019-05-20 09:28:09 +02:00
Akihiko Kusanagi
9482ee55eb
Fix point label counting in radialLinear scale ( #6280 )
2019-05-16 20:34:43 +02:00
Akihiko Kusanagi
e35b8891ce
Treat 0 as a valid point label for radial scale ( #6279 )
2019-05-16 20:17:46 +02:00
Jukka Kurkela
1686ce0aa7
Apply offset regardless of min/max time scale options ( #6264 )
2019-05-12 16:52:30 +02:00
Ben McCann
707e52a014
Fix determineUnitForFormatting floating point error ( #6259 )
2019-05-10 15:02:30 +02:00
Jukka Kurkela
2a96d83c2c
Implement layers (z-index) for layout items ( #6241 )
2019-05-09 15:54:05 +02:00
Jukka Kurkela
95b9953922
Fix overlapping auto-generated ticks on time scale ( #6115 )
2019-05-09 15:42:00 +02:00
Akihiko Kusanagi
feeda5d034
Make legend appearance consistent with chart elements ( #5621 )
2019-05-09 15:33:19 +02:00
Ben McCann
d6a5ea0d36
Implement per-dataset type (default and per-chart) options ( #5999 )
2019-05-06 22:52:40 +02:00
Jukka Kurkela
58e154c7da
Avoid time related deprecation warnings in tests ( #6246 )
2019-05-06 22:46:22 +02:00
Jukka Kurkela
ddee91eb9f
Fix tooltip title in radar charts ( #6238 )
2019-05-03 15:04:25 +08:00
Akihiko Kusanagi
4f722ab619
Fix arc size calculation when circumference is under 2PI ( #6224 )
2019-05-01 18:05:34 +02:00
Jukka Kurkela
1a2a87be3b
Fix arc border with circumference over 2*PI ( #6215 )
2019-04-30 11:34:10 +02:00
Akihiko Kusanagi
0de9fad2b0
Fix tick label rotation and layout issues ( #5961 )
2019-04-30 08:55:04 +02:00
Akihiko Kusanagi
a2ab311fa5
Use the appropriate time format for auto tick generation ( #6182 )
2019-04-26 09:43:36 +02:00
Jukka Kurkela
4e349a0149
Fill before drawing lines ( #6208 )
2019-04-18 22:52:25 +02:00
Jukka Kurkela
89af7b1383
Fix missing tooltip value in radar charts ( #6209 )
2019-04-18 22:39:52 +02:00
Akihiko Kusanagi
c457b506b8
Normalize angle for index in radialLinear scale ( #6177 )
2019-04-02 10:25:37 +02:00
Akihiko Kusanagi
14007a912d
Fix ticks.minor and ticks.major configuration issues ( #6102 )
2019-04-02 09:45:34 +02:00
Ben McCann
a43e3b0f08
Specify time scale min and max options in standard manner ( #6097 )
2019-04-02 09:43:26 +02:00
Dave Kichler
07fae6159e
Implement legend.align: 'start', 'center', 'end' ( #6141 )
...
New `options.legend.align`config option for controlling alignment of legend blocks in horizontal/vertical legends.
2019-03-23 10:25:17 +01:00
Janelle deMent
b9290a20de
Make line options scriptable ( #6128 )
2019-03-21 09:06:39 +01:00
Akihiko Kusanagi
86ed35446d
Fix hover animations and optimize pivot() ( #6129 )
2019-03-21 09:03:39 +01:00
Ben McCann
4941aa0217
Improvements to helpers.almostWhole ( #6120 )
2019-03-19 11:42:41 +01:00
Jukka Kurkela
75e76cffe5
Make decimalPlaces private and update CDN links ( #6131 )
2019-03-13 10:36:10 +01:00
Roman Borovik
f5ff45693e
Correct typo in a comment in test/index.js ( #6122 )
2019-03-11 09:06:50 +01:00