Evert Timberg
da0535e1ff
Horizontal axis with center position should display labels ( #8221 )
...
* Horizontal axes with center positions should have labels
* Linting
* Test updates
* Increase the tolerance for one test
2020-12-22 11:33:53 -05:00
Evert Timberg
55a26e69ba
Add options to configure tick styling independent of grid lines ( #8215 )
...
* Enable axis tick styling independent of grid lines
* Change tickMarkLength to tickLength for consistency with new options
* Add new scale options to TS definitions
2020-12-22 11:27:57 -05:00
Jukka Kurkela
7a2acebc28
Layout: enforce box limits, reject <0 chartArea ( #8193 )
...
* Skip chartArea boxes when chartArea <= 0
* Legend: limit to maxWidth/maxHeight
* Layout: enforce box limits, reject <0 chartArea
* Update legend fixtures
2020-12-18 12:56:04 -05:00
Jukka Kurkela
979cd4131b
Fix legend alignment issues ( #8168 )
2020-12-15 08:50:13 +02:00
Jukka Kurkela
d6b4fe2629
LineElement: no fill by default ( #8111 )
...
* LineElement: no fill by default
* Update negative-times fixture
2020-11-28 15:07:46 -05:00
Jukka Kurkela
913a01a3a6
Move title, tooltip and legend to options.plugins ( #8089 )
...
* Move title, tooltip and legend to options.plugins
* Update tooltip.md
* Update legend.md and title.md
* Add migration notes
* typo
* Types
* Restore plurals
* One more s, restore tabs
* All plugins disabled
* lint
* cc
2020-11-25 08:50:12 +02:00
Jukka Kurkela
e3ad31893d
Restore datasets
namespace (revert 6955) ( #8090 )
2020-11-24 22:27:51 +02:00
Jukka Kurkela
021561072b
Disable all plugins when options.plugins = false ( #8098 )
...
Disabling all plugins when options.plugins = false
2020-11-23 17:58:03 -05:00
Jukka Kurkela
ef89abb84b
CategoryScale: automatically add missing labels ( #8053 )
...
CategoryScale: automatically add missing labels
2020-11-14 17:00:17 -05:00
Jukka Kurkela
23bf7c0c89
Preserve scriptable context ( #7981 )
...
* Preserve scriptable context
* CC, utilize `index` in tests
* Update example to utilize context
2020-11-01 07:39:08 -05:00
Jukka Kurkela
ff76a236bf
Rename lineTension back to tension ( #7978 )
2020-10-31 14:54:14 +02:00
Jukka Kurkela
607c37eb8c
Complete rename of showLines to showLine ( #7977 )
2020-10-30 13:05:21 -04:00
Dan Manastireanu
6869a41d40
feat: Draw tooltips with point styles. Closes #7774 ( #7972 )
...
* feat: Draw tooltips with point styles. Closes #7774
* chore: Add tooltip usePointStyle docs
* chore: Add tests and visual tests for tooltip usePointStyle
* chore: Update typescript with tooltip usePointStyle
2020-10-29 22:55:40 +02:00
Dan Manastireanu
aad748dc5a
feat: Make options.layout.padding scriptable. Closes #7873 ( #7968 )
2020-10-28 11:28:17 -04:00
Dan Manastireanu
495c35950c
Add borderRadius to bar charts. Closes #7701 ( #7951 )
...
* Add helper to parse border radius options
* feat: Implement borderRadius for bar charts
* chore: add demo of bar charts with border radius
* chore: document bar borderRadius
* chore: update typescript with bar borderRadius property
* fix horizontal borders test failing due to antialiasing
* chore: Add border-radius visual test
2020-10-26 10:05:24 -04:00
Jukka Kurkela
6a72bcbeca
Rename showLines to showLine ( #7936 )
2020-10-21 08:13:27 -04:00
Evert Timberg
bc11f10216
Rename elements to mark as elements, i.e. Arc -> ArcElement ( #7924 )
...
* Rename elements to mark as elements, i.e. Arc -> ArcElement
* Rename RectangleElement to BarElement
* Also updates options.elements.rectangle to options.elements.bar
2020-10-20 08:18:56 -04:00
Evert Timberg
c68ec57672
Reduce tooltip implied padding at top and bottom edges of the canvas ( #7908 )
...
* Allow the tooltip to get closer to the canvas edge
Closer to the top & bottom by considering (height/2) instead of height.
* Update missing options in TS types
* Remove unneeded brackets
2020-10-18 16:51:48 +03:00
Evert Timberg
30d09f4701
Bar chart base value overrides ( #7904 )
...
* Bar chart base value overrides
* Ensure that `base` is marked as indexable and scriptable in the docs
2020-10-17 16:15:40 -04:00
Evert Timberg
c22d3bedea
Ability to fill a line from a specified value along an axis ( #7905 )
2020-10-17 15:46:56 -04:00
Jukka Kurkela
c9b38b63dc
Share min sample size with all bars on same scale ( #7897 )
...
Share min sample size with all bars on same scale
2020-10-16 08:04:22 -04:00
Evert Timberg
1ca60808b4
Shorten alignment settings for axes ( #7886 )
...
* Rename crossAlignment to crossAlign
* Update alignment to align for cartesian axes
2020-10-14 08:27:54 -04:00
Evert Timberg
cdd742d752
Polar Area elements.arc.angle
option now returns degrees ( #7871 )
...
* Polar Area `elements.arc.angle` option now returns degrees
* Update wording of migration docs
2020-10-12 10:56:03 -04:00
Evert Timberg
29f1358328
Cartesian axis label cross alignment ( #7874 )
...
* Refactor Y axis alignment to it's own method
* Label Cross alignment
* Add documentation of new setting
* Update docs with live sample
2020-10-12 10:22:13 -04:00
Evert Timberg
dc4eac6323
Cartesian axis text alignment ( #7846 )
...
* Generate textBaseline per tick label
* Enable configuration of tick alignment
* Add image based tests of text alignment options
2020-10-10 11:38:55 -04:00
Jukka Kurkela
f1ed2ee932
beginAtZero support for logarithmic ( #7862 )
2020-10-07 17:37:10 -04:00
Evert Timberg
56a8a23d54
Add new option, skipNull
to bar charts that enables skipping null values ( #7849 )
...
* Add new option, `skipNull` to bar charts that enables skipping null
or undefined values.
* Address code review feedback
* Fix windows CI lint issues
2020-10-06 07:33:24 -04:00
Evert Timberg
df0b79b9cc
JS test files should have tabs to correctly lint ( #7844 )
2020-10-04 07:49:14 -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
8cdc60ccd1
[perf] Update/draw only visible line/points ( #7793 )
...
* Restore count parameter to updateElements
* [perf] Update/draw only visible line/points
* CC
2020-09-15 18:57:31 -04:00
Jukka Kurkela
effe988bbf
Reduce code duplication and sort generated ticks ( #7747 )
...
* Reduce code duplication and sort generated ticks
* Add test
2020-09-02 08:09:39 -04:00
Jukka Kurkela
6f83c55be5
'stack' mode for filler ( #7705 )
...
'stack' mode for filler
2020-08-11 09:31:18 -04:00
Jukka Kurkela
7f4b74d956
minBarLength at base going both ways ( #7642 )
2020-07-17 13:29:43 -04:00
Ben McCann
2564e708b5
Determine unit automatically in test ( #7637 )
2020-07-17 07:53:40 -04:00
Ben McCann
8d837f977d
Add test fixture for financial sample ( #7635 )
...
Add test fixture for financial sample
2020-07-16 18:47:40 -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
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
8ac700961a
Move timeseries fixtures to their own directory ( #7536 )
2020-06-21 08:30: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
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
Sebastian Niemann
8b628c33b2
Turns off interpolation per default ( #7386 )
...
Co-authored-by: Sebastian Niemann <sn@wertpapiertreuhand.de>
2020-06-12 18:03: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
Evert Timberg
1cdfea8503
Do not show legend in stacked scatter test ( #7470 )
2020-06-08 07:26:06 -04:00
Evert Timberg
6f14b145d1
Stacked scatter chart ( #7468 )
...
* Handle partially stacked scatter charts
* Update test files
2020-06-07 16:32:08 -04:00
Evert Timberg
08854a4241
Radar charts should fill to the center by default ( #7446 )
...
* Radar charts should fill to the center by default
* Update tests for new defaults
2020-05-30 16:42:23 -04:00
Jukka Kurkela
22e367c445
Make indexable options looping ( #7442 )
...
* Make indexable options looping
* Migration note
2020-05-29 16:27:10 -04:00
Jukka Kurkela
c02acaf272
Arc: Stop drawing anything when hidden ( #7438 )
...
* Arc: Stop drawing anything when hidden
* Cleanup
2020-05-28 17:35:38 -04:00