Ben McCann
4cc3079e65
Add normalized option ( #7538 )
...
Add normalized option to time scales
2020-07-07 07:50:53 -04:00
Jukka Kurkela
6bd5ad5518
Generic registry for controllers, scales, elements and plugins ( #7435 )
...
* Generic registry for controllers, scales, elements and plugins
* Remove references to scale service
2020-07-06 17:38:04 -04:00
Ben McCann
f544707e2c
Remove duplicate tests ( #7568 )
2020-07-06 09:35:30 -04:00
Ben McCann
a33086bfc1
Enable autoSkip for time scale to match others ( #7570 )
2020-07-06 09:35:16 -04:00
Ben McCann
13e7a1163b
Use all timestamps for calculating offsets ( #7573 )
2020-07-06 09:34:43 -04:00
Ben McCann
c2cd00ca90
Split time scale into time and timeseries ( #7525 )
...
* Split time scale into time and timeseries
* Address comment
2020-06-19 10:21:39 -04:00
Jukka Kurkela
40871b0062
Parse from custom properties in data ( #7489 )
...
* Parse from custom properties in data
* Resolve CC issues
* Review update
2020-06-18 17:36:53 -04:00
Jukka Kurkela
32de1b6ebf
Support isoWeekday when rounding ( #7269 )
2020-04-13 19:34:18 -04:00
Jukka Kurkela
3b915cbdd3
Convert some of the time scale tests to fixtures ( #7154 )
...
* Convert some of time scale tick tests to fixtures
* A little more threshold
2020-02-28 18:56:22 -05:00
Jukka Kurkela
d801e56106
Update dependencies and alter privacy of functions ( #7138 )
...
* Update dependencies
* Fix privacy problems
* color lib & consistency
* Review update
* getLabelCapacity
* Review update
2020-02-22 08:35:16 -05:00
Ben McCann
12ea8d86ca
Fix time scale computeOffsets ( #7072 )
2020-02-08 18:08:42 -05:00
Ben McCann
a30f753321
Finishing removing old major/minor options ( #7042 )
...
* Finishing removing old major/minor options
* Fix samples
2020-02-05 18:20:01 -05:00
Jose Raul Pérez
b1421c6ea1
Add stroke lines option around ticks to improve readability ( #6787 )
...
Enable stroking of text on of axis labels
2020-01-12 14:22:51 -05:00
Ben McCann
3b55de73fa
Improve calculation for number of ticks that can fit ( #6927 )
2020-01-07 07:26:29 -05:00
Ben McCann
2bef1e9f23
Remove executable bit from tests ( #6854 )
2019-12-20 21:14:41 -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
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
Ben McCann
edbeaac29f
Remove _getPixelForOffset ( #6763 )
...
* Remove _getPixelForOffset
* Update migration guide
2019-11-19 07:09:50 -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
Ben McCann
cb95a36b94
Fix value passed to getPixelForTick ( #6724 )
2019-11-14 07:15:44 -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
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
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
f606c23f2f
Fix unit determination when autoSkip is enabled ( #6583 )
2019-10-24 19:21:45 -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
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
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
Jukka Kurkela
db6a6d5989
Refactor core.layouts ( #6304 )
2019-06-19 18:08:07 -04:00
Jukka Kurkela
abbddd1298
Allow specifying labels in time scale options ( #6257 )
2019-05-21 13:36:16 +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
95b9953922
Fix overlapping auto-generated ticks on time scale ( #6115 )
2019-05-09 15:42:00 +02:00
Jukka Kurkela
58e154c7da
Avoid time related deprecation warnings in tests ( #6246 )
2019-05-06 22:46:22 +02:00
Akihiko Kusanagi
a2ab311fa5
Use the appropriate time format for auto tick generation ( #6182 )
2019-04-26 09:43:36 +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
Ben McCann
f2b099b835
Initialize date adapter with chart options ( #6016 )
2019-02-21 08:11:32 +01:00
Ben McCann
3e18708183
Use datetime
as default time scale tooltip format ( #6019 )
...
Remove the logic that computed an "optimal" tooltip format. Instead, always fallback to the `datetime` adapter format which is more efficient and stable. Additionally, remove the adapter `presets` API, which is not needed anymore.
2019-02-18 19:45:38 +01:00
Simon Brunel
8a3eb85928
Implement adapter to abstract date/time features ( #5960 )
2019-01-11 08:03:28 +01:00
Akihiko Kusanagi
39b4d61ac2
Fix time scale ticks.reverse issue ( #5933 )
2019-01-02 16:00:55 +01:00
Jukka Kurkela
d7e8b733e3
Add reverse
support to time scale ( #5927 )
2018-12-20 16:08:13 +01:00
Ben McCann
37ec8384d7
Format the label in the time scale tooltip ( #5095 )
2018-01-13 10:39:16 -05:00
jcopperfield
b04ce949d1
Use time.unit option to create default min/max for empty chart ( #5045 )
2017-12-15 18:10:30 +01:00
Ben McCann
b64fd5db25
Respect min and max when building ticks ( #4860 )
...
Generate time scale ticks (`ticks.source: 'auto'`) based on the effective visualized range instead of the actual data range, meaning that the computed units and/or step size may change if the time options min and max are different from the data min and max.
2017-10-20 09:03:38 +02:00
andig
ea703a54bf
Implement scale label padding ( #4646 )
2017-09-10 13:15:47 -04:00