Commit Graph

371 Commits

Author SHA1 Message Date
Evert Timberg
3f89c25895
Ability to toggle individual bar visibility (#7870) 2020-10-12 10:22:55 -04:00
Jukka Kurkela
f1ed2ee932
beginAtZero support for logarithmic (#7862) 2020-10-07 17:37:10 -04:00
Evert Timberg
168965fa38
Enable custom sorting of the legend items (#7851) 2020-10-05 22:15:38 -04:00
Evert Timberg
a8a83d12cd
Provide APIs to set active (hovered) and tooltip elements. (#7845)
Provide APIs to set active (hovered) and tooltip elements.

Chart.setActiveElements will set the hovered items.
Chart.tooltip.setActiveElements will set the tooltip items.
2020-10-05 17:14:38 -04:00
Evert Timberg
8438da9e84
Provide method to lookup a chart from a canvas (#7843)
* Provide method to lookup a chart from a canvas
* Throw an error during construction if a canvas is in use
* Migration docs for new constructor behaviour
2020-10-04 11:08:38 -04:00
Evert Timberg
9b204eb278
Enable per-dataset circumference and rotation for pie/doughnut charts (#7833)
* Enable per-dataset circumference and rotation for pie/doughnut charts
* Convert `circumference` and `rotation` options to degrees
2020-10-03 16:47:39 -04:00
Jukka Kurkela
07d50a59bc
Clone cached options if enableOptionSharing!=true (#7837)
Clone cached options if enableOptionSharing!=true
2020-10-02 08:15:47 -04:00
Jukka Kurkela
c4243683fa
Make dataset animations obey chart level disable (#7820) 2020-09-28 09:51:28 -04:00
Samuel Gratzl
391e4b6f2e
flat helpers (#7806)
* generate a flat helpers package
* move helpers built files to dist
* upgrade docs for flat helpers
2020-09-28 09:11:55 -04:00
Jukka Kurkela
10f393a58d
Fix: maximum size and mouse position with styling (#7816)
Fix: maximum size and mouse position with styling
2020-09-26 13:18:35 -04:00
Jukka Kurkela
2f888172d4
Cache event offset coordinates (#7795) 2020-09-14 11:37:29 -04:00
Jukka Kurkela
1cc8d50bc9
Fix: relative position in FF (#7792)
* Fix: relative position in FF
* Add tests
2020-09-13 17:20:14 -04:00
Jukka Kurkela
d5eaa12d96
Fix: update chart when attached (#7758) 2020-09-04 16:47:36 -04:00
Jukka Kurkela
da33b1bb27
Fix shared option handling (#7731)
Fix shared option handling
2020-08-27 09:14:08 -04:00
Jukka Kurkela
d561486b4e
Revert "Preserve object prototypes when cloning (#7381)" (#7727)
This reverts commit 51be344717.
2020-08-24 08:15:56 -04:00
Jukka Kurkela
f5b4a0fa3c
Improve test coverage and fix minor issues found (#7713)
* Registry
* Element
* Animation
* Animations
* Animator
2020-08-17 10:03:15 -04:00
Jukka Kurkela
dd261b22f9
Use interpolation in fill: 'stack' (and fix interpolation) (#7711)
* Add tests and fix _boundSegment
* Use interpolate for finding points below
* Remove _refPoints logic (getTarget in draw)
2020-08-16 11:18:46 -04:00
Jukka Kurkela
689befa807
Make sure bezier control points are updated (#7710)
* Make sure bezier control points are updated
* Test
2020-08-15 17:06:03 -04:00
Jukka Kurkela
6ad17c0294
Stop bundling specs for improved coverage (#7709) 2020-08-14 09:15:18 -04:00
Jukka Kurkela
9c27f74801
Export extensible classes in ESM compatible way (#7650)
* Export extensible classes in ESM compatible way
* Export collection helperrs
* Remove reduntant registry assignment
2020-08-03 12:33:41 -04:00
Jukka Kurkela
e756fb93a3
Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts
2020-08-03 12:32:58 -04:00
Jukka Kurkela
dc5f88b620
Animation events sanity (#7629) 2020-07-16 13:30:07 -04:00
Jukka Kurkela
c51af9f13e
Fix category scale tick placement with autoSkip (#7622) 2020-07-15 18:12:32 -04:00
Ben McCann
426d8debba
Tooltip: add dataPoint and rename value to formattedValue (#7618)
* Tooltip: add dataPoint and rename value to formattedValue
* Add a test
2020-07-14 17:40:32 -04:00
Jukka Kurkela
6deafdb4d4
Registry fixes (#7617)
* Fix documentation for classical extensions
* Tests and fixes for registry
2020-07-13 17:43:30 -04:00
Jukka Kurkela
91164e8c66
Line hide (#7612)
* Add support for description in fixtures
* Update datasetController to draw active(s) last
* Handle hiding of line by borderWidth
* Disable filling of scatter charts by default
* Make radar chart consistent with line
2020-07-13 13:20:05 -04:00
Jukka Kurkela
b8ad2a6a0a
Registry bugs (#7608)
* Stop failing early when no scales are registered
* Move filler defaults
* Move legend defaults
* Remove legendHitBoxes from title
* Move @kurkle/color to devDependencies
2020-07-13 09:41:42 -04:00
Ben McCann
30e197742d
Align the tooltip callbacks parameters with scriptable options (#7603)
Align the tooltip callbacks parameters with scriptable options
2020-07-12 18:26:13 -04:00
Jukka Kurkela
7024aad38f
PluginService using registry (#7590)
PluginService using registry
2020-07-11 18:08:45 -04:00
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
919e50b9fc
Generate ticks from small to large (#7559)
* Generate ticks from small to large
* Add note to migration guide
2020-06-29 07:52:28 -04:00
Ben McCann
2ca155cce1
Add parameters to tooltip filter option (#7556) 2020-06-29 07:51:20 -04:00
Evert Timberg
ba5c9e01c6
Update tooltip when the display position changes (#7469) 2020-06-25 13:51:34 -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
6cf97859f0
Consistently resolve element options (#7520)
* Consistently resolve element options
* Add tests
2020-06-18 17:44:55 -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
59a1af91ac
Replace horizontalBar with indexAxis: 'y' (#7514)
* Replace horizontalBar with indexAxis: 'y'
* Fix drawing of line for last x-position
* Consistently determine axis of scale
* Add test
2020-06-18 17:35:52 -04:00
Jukka Kurkela
0b3ef9c1a6
Replace ineffective test with a fixture (#7491) 2020-06-11 18:21:10 -04:00
Jukka Kurkela
281ee42def
Fix measureText bug in spriting (#7492) 2020-06-11 08:50:17 -04:00
Evert Timberg
d315934513
Radial scale scriptable options (#7471)
Scriptable radialLinear options
2020-06-11 08:49:54 -04:00
Jukka Kurkela
026482a0cf
Correctly determine min/max for Float Bar (#7398) 2020-06-09 17:15:05 -04:00
Jukka Kurkela
8e7bde25c4
Remove data checks and always re-parse data (#7458)
* Remove data checks and always re-parse data
* Fix removed helper namespace
2020-06-08 17:49:55 -04:00
Jukka Kurkela
f3cfeb8420
Implement routing of defaults (#7453)
Implement routing of defaults
2020-06-08 17:49:17 -04:00
Evert Timberg
3ec3ac716f
Cleanup Event Handling code to match style of tooltip plugin. (#7467)
* Cleanup Event Handling code to match style of tooltip plugin.

Eliminates saving two arrays of items on the chart prototype. The `onHover`
callback now receives the wrapped event instead of the native one.
2020-06-08 07:31:00 -04:00
Evert Timberg
0703d78286
Enable custom legend box heights (#7459)
Enable custom legend box heights
2020-06-04 19:53:40 -04:00
Evert Timberg
7872c8490e
Radial Linear Scale: Compute Value based on distance from center (#7449)
* Radial Linear Scale: Compute Value based on distance from center

* Code review updates
2020-06-01 08:07:48 -04:00