Jukka Kurkela
b2d5a5fa97
Update defaults and types for tick stroke ( #8195 )
2020-12-18 12:36:18 -05:00
Evert Timberg
b54bd272fb
Move tooltip plugin hooks to the core Plugin type ( #8160 )
...
* Move tooltip plugin hooks to the core
* Try and use declaration merging for Plugin type
* Merge Plugin types
2020-12-17 18:10:29 -05:00
Josh Kelley
dc00ed08cb
Update docs on printing ( #8149 )
...
From what I can tell from testing locally, Chrome doesn't reliably trigger resize events for the final print layout, so using `.resize()` with no parameters doesn't generally work.
I'm not sure if there are circumstances in which the original docs' suggestion of using `.resize()` with no parameters can work; if the original text should be deleted, I can do so.
I also noticed that the TypeScript type definitions for `.resize()` mark the parameters as required, even though the implementation and docs don't require them.
2020-12-10 16:25:00 +02:00
lab900-marcel-samyn
e08b17636b
[v3] Add locale to ChartOptions type ( #8118 )
...
* Add locale to ChartOptions type
* Adds locale options documentation
* fixed typo
* changes links to number format, linking the constructor
* changes to a better sentence
* changes to better sentence (2)
Co-authored-by: stock <stocki.nail@gmail.com>
2020-12-04 08:25:43 +02:00
Jukka Kurkela
c1aeba1e67
Add new scale hooks for plugins ( #8112 )
...
* Add new scale hooks for plugins
* Add notes
* cc
* cancelability
2020-12-02 06:51:47 +02:00
Jukka Kurkela
78dbeea1f0
Add new hooks for plugins ( #8103 )
...
* Notify beforeUpdate on disabled plugins
cc?
cc2
cc3
typo
* init, unInit, enabled, disabled
self review :)
update the new hook signatures to unified
merge error
* Review update
* start/stop, cc
* types, jsdoc
* stop between destroy and uninstall
2020-11-28 22:57:45 +02:00
Mostafa Sameti
f014873864
fix color type & add background and border color ( #8110 )
2020-11-28 15:06:38 -05:00
Jukka Kurkela
61aea761f4
Unify signature of plugin hooks ( #8102 )
2020-11-28 09:45:43 +02: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
f96fa2b96d
Allow single parameter to Defaults.set ( #8050 )
...
* Allow single parameter to Defaults.set
* Review update
* Record
2020-11-19 20:58:24 +02:00
Evert Timberg
85fc6cc49c
Rename uppercase types to camel case ( #8074 )
...
* Rename uppercase types to camel case
* Rename SCALES to TScale
Reanme DSE to TDatasetElement
Rename E to TElement
2020-11-19 08:10:26 -05:00
Jukka Kurkela
988c865599
Add plugins to CoreChartOptions ( #8048 )
2020-11-16 20:58:13 +02:00
xr0master
3f413c7bcf
Fix inconsistency in types for LABEL ( #8027 )
...
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-11-09 16:23:14 +02:00
emmcbd
7ad91817e7
Improved types for defaults ( #8025 )
2020-11-08 09:52:41 -05:00
Evert Timberg
17f6edb650
Remove I prefix from TS types ( #8017 )
...
* Remove I prefix from TS types
* Update missing `ILayoutItem` typedefs
* IEvent should become ChartEvent
* Prevent FillTarget collision
* Import FontSpec instead of IFontSpec
* Prevent recursive DateAdapter problem
2020-11-07 08:35:19 -05:00
xr0master
afbe03cce4
[types][beta-5] fixed stacked scale, changed default type for data.labels ( #8001 )
...
* Scale: added the stacked property for all scales
* interfaces: generic type LABEL can be string, Date, etc.
* controllers: stack can be used for all types of dataset
* docs/data-structures: added general dataset properties
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-11-05 09:12:25 -05:00
Jukka Kurkela
4daf37e864
Delay resize to just before draw when animating ( #7989 )
...
* Remove unused properties
* Delay resize to just before draw when animating
* Remove silent resize, update migration guide
* Fix typo in migrations doc
Co-authored-by: Evert Timberg <evert.timberg+github@gmail.com>
2020-11-01 08:15:43 -05: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
Fabian
68bae7906d
fix return type for setActiveElements ( #7961 )
2020-10-26 16:31:45 -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
Evert Timberg
4ed650acbe
Enable overriding the legend pointStyle using new pointStyle
option ( #7959 )
2020-10-26 14:16:00 +02:00
Evert Timberg
c428797592
Enable suggestedMin and suggestedMax setts for logarithmic axes ( #7955 )
2020-10-25 10:38:41 -04:00
Evert Timberg
b4fe6078aa
Update category scale labels types to include string[][] ( #7953 )
2020-10-24 18:30:44 -04:00
Jukka Kurkela
58d1911d05
Add args.mode to before/after update plugin hooks ( #7949 )
2020-10-24 18:36:31 +03: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
Jukka Kurkela
f5c4f97504
Add interaction options ( #7922 )
...
* Add interaction options
* Add migration note
2020-10-19 07:24:06 -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
Evert Timberg
4a191d5af9
Document and remove APIs that can be replaced by it ( #7900 )
2020-10-17 15:12:34 -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
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
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
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
emmcbd
d332ebc63d
Remove enum types ( #7841 )
...
* Remove type enum
* Add declare keyword to UpdateModeEnum
2020-10-03 16:48:22 -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
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
emmcbd
2bb23dfe8c
Minor type fixes ( #7812 )
2020-09-23 08:43:33 -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
2c5db2c350
Fix some CC issues ( #7796 )
...
* Fix some CC issues
* Merge _lookup, _lookupByKey, _rlookupByKey
* Remove TODO from types
* Merge TRBL logics
* Merge getMaximumWidth and getMaximumHeight
2020-09-14 14:40:19 -04:00
emmcbd
b5853a46b4
Strong typings for scales and datasets in options ( #7791 )
2020-09-14 09:57:00 -04:00
xr0master
21990fbb12
Merge Chart instance with Chart factory ( #7783 )
...
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-12 08:46:17 -04:00
emmcbd
7dbfde524f
Strong chart object and properties typing ( #7782 )
...
* Strong chart object and chart creation typing
* Handle mixed charts
* Add documentation
2020-09-11 20:18:21 -04:00
xr0master
9b00ff3e1e
interfaces.d: fix a wrong place of Option infer ( #7770 )
...
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-11 07:32:11 -04:00