@amcharts/amcharts5 5.1.10 → 5.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.internal/charts/hierarchy/ForceDirected.d.ts +1 -0
- package/.internal/charts/hierarchy/ForceDirected.d.ts.map +1 -1
- package/.internal/charts/hierarchy/ForceDirected.js +9 -0
- package/.internal/charts/hierarchy/ForceDirected.js.map +1 -1
- package/.internal/charts/hierarchy/Hierarchy.d.ts +12 -12
- package/.internal/charts/hierarchy/Hierarchy.d.ts.map +1 -1
- package/.internal/charts/hierarchy/Hierarchy.js.map +1 -1
- package/.internal/charts/hierarchy/LinkedHierarchy.d.ts +1 -0
- package/.internal/charts/hierarchy/LinkedHierarchy.d.ts.map +1 -1
- package/.internal/charts/hierarchy/LinkedHierarchy.js +12 -3
- package/.internal/charts/hierarchy/LinkedHierarchy.js.map +1 -1
- package/.internal/charts/map/MapPolygon.d.ts.map +1 -1
- package/.internal/charts/map/MapPolygon.js +6 -8
- package/.internal/charts/map/MapPolygon.js.map +1 -1
- package/.internal/charts/map/MapSeries.d.ts +21 -0
- package/.internal/charts/map/MapSeries.d.ts.map +1 -1
- package/.internal/charts/map/MapSeries.js +4 -4
- package/.internal/charts/map/MapSeries.js.map +1 -1
- package/.internal/charts/percent/PercentSeries.d.ts +6 -6
- package/.internal/charts/percent/PercentSeries.d.ts.map +1 -1
- package/.internal/charts/percent/PercentSeries.js.map +1 -1
- package/.internal/charts/pie/PieSeries.d.ts +1 -1
- package/.internal/charts/pie/PieSeries.d.ts.map +1 -1
- package/.internal/charts/pie/PieSeries.js.map +1 -1
- package/.internal/charts/radar/AxisRendererCircular.d.ts +5 -5
- package/.internal/charts/radar/AxisRendererCircular.d.ts.map +1 -1
- package/.internal/charts/radar/AxisRendererCircular.js.map +1 -1
- package/.internal/charts/radar/AxisRendererRadial.d.ts +4 -4
- package/.internal/charts/radar/AxisRendererRadial.d.ts.map +1 -1
- package/.internal/charts/radar/AxisRendererRadial.js.map +1 -1
- package/.internal/charts/radar/RadarColumnSeries.d.ts +9 -9
- package/.internal/charts/radar/RadarColumnSeries.d.ts.map +1 -1
- package/.internal/charts/radar/RadarColumnSeries.js.map +1 -1
- package/.internal/charts/radar/RadarCursor.d.ts +6 -6
- package/.internal/charts/radar/RadarCursor.d.ts.map +1 -1
- package/.internal/charts/radar/RadarCursor.js.map +1 -1
- package/.internal/charts/wordcloud/WordCloud.d.ts +8 -8
- package/.internal/charts/wordcloud/WordCloud.d.ts.map +1 -1
- package/.internal/charts/wordcloud/WordCloud.js +7 -7
- package/.internal/charts/wordcloud/WordCloud.js.map +1 -1
- package/.internal/charts/xy/XYChart.d.ts +8 -1
- package/.internal/charts/xy/XYChart.d.ts.map +1 -1
- package/.internal/charts/xy/XYChart.js +15 -3
- package/.internal/charts/xy/XYChart.js.map +1 -1
- package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/Axis.js +1 -0
- package/.internal/charts/xy/axes/Axis.js.map +1 -1
- package/.internal/charts/xy/axes/DateAxis.d.ts +4 -0
- package/.internal/charts/xy/axes/DateAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/DateAxis.js +47 -4
- package/.internal/charts/xy/axes/DateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/GaplessDateAxis.d.ts +1 -1
- package/.internal/charts/xy/axes/GaplessDateAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/GaplessDateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/ValueAxis.d.ts +27 -2
- package/.internal/charts/xy/axes/ValueAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/ValueAxis.js +17 -5
- package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts +4 -0
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.js +7 -8
- package/.internal/charts/xy/series/BaseColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/Candlestick.d.ts +9 -9
- package/.internal/charts/xy/series/Candlestick.d.ts.map +1 -1
- package/.internal/charts/xy/series/Candlestick.js.map +1 -1
- package/.internal/charts/xy/series/ColumnSeries.d.ts +2 -2
- package/.internal/charts/xy/series/ColumnSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/ColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/OHLCSeries.d.ts +2 -2
- package/.internal/charts/xy/series/OHLCSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/OHLCSeries.js.map +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts +25 -3
- package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/XYSeries.js +41 -17
- package/.internal/charts/xy/series/XYSeries.js.map +1 -1
- package/.internal/core/Root.d.ts +1 -0
- package/.internal/core/Root.d.ts.map +1 -1
- package/.internal/core/Root.js +10 -2
- package/.internal/core/Root.js.map +1 -1
- package/.internal/core/render/GridLayout.d.ts.map +1 -1
- package/.internal/core/render/GridLayout.js +11 -9
- package/.internal/core/render/GridLayout.js.map +1 -1
- package/.internal/core/render/HorizontalLayout.d.ts.map +1 -1
- package/.internal/core/render/HorizontalLayout.js +42 -33
- package/.internal/core/render/HorizontalLayout.js.map +1 -1
- package/.internal/core/render/Scrollbar.d.ts.map +1 -1
- package/.internal/core/render/Scrollbar.js +3 -0
- package/.internal/core/render/Scrollbar.js.map +1 -1
- package/.internal/core/render/Series.d.ts +5 -0
- package/.internal/core/render/Series.d.ts.map +1 -1
- package/.internal/core/render/Series.js +29 -3
- package/.internal/core/render/Series.js.map +1 -1
- package/.internal/core/render/Sprite.d.ts +4 -0
- package/.internal/core/render/Sprite.d.ts.map +1 -1
- package/.internal/core/render/Sprite.js +14 -0
- package/.internal/core/render/Sprite.js.map +1 -1
- package/.internal/core/render/Tooltip.d.ts +2 -2
- package/.internal/core/render/Tooltip.js.map +1 -1
- package/.internal/core/render/VerticalLayout.d.ts.map +1 -1
- package/.internal/core/render/VerticalLayout.js +42 -33
- package/.internal/core/render/VerticalLayout.js.map +1 -1
- package/.internal/core/util/Time.d.ts.map +1 -1
- package/.internal/core/util/Time.js +4 -0
- package/.internal/core/util/Time.js.map +1 -1
- package/.internal/core/util/Timezone.d.ts.map +1 -1
- package/.internal/core/util/Timezone.js +4 -0
- package/.internal/core/util/Timezone.js.map +1 -1
- package/.internal/plugins/exporting/Exporting.d.ts +1 -1
- package/.internal/plugins/exporting/Exporting.js.map +1 -1
- package/.internal/plugins/exporting/ExportingMenu.d.ts.map +1 -1
- package/.internal/plugins/exporting/ExportingMenu.js +3 -2
- package/.internal/plugins/exporting/ExportingMenu.js.map +1 -1
- package/.internal/plugins/json/Classes.js +131 -131
- package/.internal/plugins/json/Classes.js.map +1 -1
- package/.internal/plugins/json/Json.d.ts.map +1 -1
- package/.internal/plugins/json/Json.js +94 -32
- package/.internal/plugins/json/Json.js.map +1 -1
- package/CHANGELOG.md +38 -0
- package/examples/javascript/flow-chord/package.json +1 -1
- package/examples/javascript/flow-chord-directed/package.json +1 -1
- package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/javascript/flow-sankey/package.json +1 -1
- package/examples/javascript/gauge/package.json +1 -1
- package/examples/javascript/gauge-bands/package.json +1 -1
- package/examples/javascript/hierarchy-force-directed/package.json +1 -1
- package/examples/javascript/hierarchy-pack/package.json +1 -1
- package/examples/javascript/hierarchy-partition/package.json +1 -1
- package/examples/javascript/hierarchy-sunburst/package.json +1 -1
- package/examples/javascript/hierarchy-tree/package.json +1 -1
- package/examples/javascript/hierarchy-treemap/package.json +1 -1
- package/examples/javascript/json/index.js +192 -80
- package/examples/javascript/json/package.json +1 -1
- package/examples/javascript/map-animating-along-lines/package.json +1 -1
- package/examples/javascript/map-day-and-night/package.json +1 -1
- package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/javascript/map-with-bubbles/package.json +1 -1
- package/examples/javascript/map-zoom-to-country/package.json +1 -1
- package/examples/javascript/misc-40-charts/package.json +1 -1
- package/examples/javascript/misc-microchart-grid/package.json +1 -1
- package/examples/javascript/pie-chart/package.json +1 -1
- package/examples/javascript/pie-donut-chart/package.json +1 -1
- package/examples/javascript/pie-variable-radius/package.json +1 -1
- package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
- package/examples/javascript/radar-heat-map/package.json +1 -1
- package/examples/javascript/radar-line/package.json +1 -1
- package/examples/javascript/radar-time-line/package.json +1 -1
- package/examples/javascript/sliced-funnel/package.json +1 -1
- package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/javascript/sliced-pyramid/package.json +1 -1
- package/examples/javascript/venn-diagram/package.json +1 -1
- package/examples/javascript/wordcloud-with-data/package.json +1 -1
- package/examples/javascript/wordcloud-with-text/package.json +1 -1
- package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/javascript/xy-bubble/package.json +1 -1
- package/examples/javascript/xy-candlestick/package.json +1 -1
- package/examples/javascript/xy-clustered-column/package.json +1 -1
- package/examples/javascript/xy-column/package.json +1 -1
- package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/javascript/xy-data-grouping/package.json +1 -1
- package/examples/javascript/xy-draggable-range/package.json +1 -1
- package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/javascript/xy-dumbbell plot/package.json +1 -1
- package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/javascript/xy-line/package.json +1 -1
- package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/javascript/xy-live-data/package.json +1 -1
- package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/javascript/xy-ohlc/package.json +1 -1
- package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/javascript/xy-smoothed-line/package.json +1 -1
- package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/javascript/xy-stacked-column/package.json +1 -1
- package/examples/javascript/xy-stacked-step/package.json +1 -1
- package/examples/javascript/xy-stock/package.json +1 -1
- package/examples/javascript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/flow-chord/package.json +1 -1
- package/examples/typescript/flow-chord/webpack.config.js +1 -1
- package/examples/typescript/flow-chord-directed/package.json +1 -1
- package/examples/typescript/flow-chord-directed/webpack.config.js +1 -1
- package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/webpack.config.js +1 -1
- package/examples/typescript/flow-sankey/package.json +1 -1
- package/examples/typescript/flow-sankey/webpack.config.js +1 -1
- package/examples/typescript/gauge/package.json +1 -1
- package/examples/typescript/gauge/webpack.config.js +1 -1
- package/examples/typescript/gauge-bands/package.json +1 -1
- package/examples/typescript/gauge-bands/webpack.config.js +1 -1
- package/examples/typescript/hierarchy-force-directed/package.json +1 -1
- package/examples/typescript/hierarchy-force-directed/webpack.config.js +1 -1
- package/examples/typescript/hierarchy-pack/package.json +1 -1
- package/examples/typescript/hierarchy-pack/webpack.config.js +1 -1
- package/examples/typescript/hierarchy-partition/package.json +1 -1
- package/examples/typescript/hierarchy-partition/webpack.config.js +1 -1
- package/examples/typescript/hierarchy-sunburst/package.json +1 -1
- package/examples/typescript/hierarchy-sunburst/webpack.config.js +1 -1
- package/examples/typescript/hierarchy-tree/package.json +1 -1
- package/examples/typescript/hierarchy-tree/webpack.config.js +1 -1
- package/examples/typescript/hierarchy-treemap/package.json +1 -1
- package/examples/typescript/hierarchy-treemap/webpack.config.js +1 -1
- package/examples/typescript/json/index.ts +191 -79
- package/examples/typescript/json/package.json +1 -1
- package/examples/typescript/json/webpack.config.js +1 -1
- package/examples/typescript/map-animating-along-lines/package.json +1 -1
- package/examples/typescript/map-animating-along-lines/webpack.config.js +1 -1
- package/examples/typescript/map-day-and-night/package.json +1 -1
- package/examples/typescript/map-day-and-night/webpack.config.js +1 -1
- package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/webpack.config.js +1 -1
- package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/webpack.config.js +1 -1
- package/examples/typescript/map-with-bubbles/package.json +1 -1
- package/examples/typescript/map-with-bubbles/webpack.config.js +1 -1
- package/examples/typescript/map-zoom-to-country/package.json +1 -1
- package/examples/typescript/map-zoom-to-country/webpack.config.js +1 -1
- package/examples/typescript/misc-40-charts/package.json +1 -1
- package/examples/typescript/misc-40-charts/webpack.config.js +1 -1
- package/examples/typescript/misc-microchart-grid/package.json +1 -1
- package/examples/typescript/misc-microchart-grid/webpack.config.js +1 -1
- package/examples/typescript/pie-chart/package.json +1 -1
- package/examples/typescript/pie-chart/webpack.config.js +1 -1
- package/examples/typescript/pie-donut-chart/package.json +1 -1
- package/examples/typescript/pie-donut-chart/webpack.config.js +1 -1
- package/examples/typescript/pie-variable-radius/package.json +1 -1
- package/examples/typescript/pie-variable-radius/webpack.config.js +1 -1
- package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/webpack.config.js +1 -1
- package/examples/typescript/radar-heat-map/package.json +1 -1
- package/examples/typescript/radar-heat-map/webpack.config.js +1 -1
- package/examples/typescript/radar-line/package.json +1 -1
- package/examples/typescript/radar-line/webpack.config.js +1 -1
- package/examples/typescript/radar-time-line/package.json +1 -1
- package/examples/typescript/radar-time-line/webpack.config.js +1 -1
- package/examples/typescript/sliced-funnel/package.json +1 -1
- package/examples/typescript/sliced-funnel/webpack.config.js +1 -1
- package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/webpack.config.js +1 -1
- package/examples/typescript/sliced-pyramid/package.json +1 -1
- package/examples/typescript/sliced-pyramid/webpack.config.js +1 -1
- package/examples/typescript/venn-diagram/package.json +1 -1
- package/examples/typescript/venn-diagram/webpack.config.js +1 -1
- package/examples/typescript/wordcloud-with-data/package.json +1 -1
- package/examples/typescript/wordcloud-with-data/webpack.config.js +1 -1
- package/examples/typescript/wordcloud-with-text/package.json +1 -1
- package/examples/typescript/wordcloud-with-text/webpack.config.js +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/webpack.config.js +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/webpack.config.js +1 -1
- package/examples/typescript/xy-bubble/package.json +1 -1
- package/examples/typescript/xy-bubble/webpack.config.js +1 -1
- package/examples/typescript/xy-candlestick/package.json +1 -1
- package/examples/typescript/xy-candlestick/webpack.config.js +1 -1
- package/examples/typescript/xy-clustered-column/package.json +1 -1
- package/examples/typescript/xy-clustered-column/webpack.config.js +1 -1
- package/examples/typescript/xy-column/package.json +1 -1
- package/examples/typescript/xy-column/webpack.config.js +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/webpack.config.js +1 -1
- package/examples/typescript/xy-data-grouping/package.json +1 -1
- package/examples/typescript/xy-data-grouping/webpack.config.js +1 -1
- package/examples/typescript/xy-draggable-range/package.json +1 -1
- package/examples/typescript/xy-draggable-range/webpack.config.js +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/webpack.config.js +1 -1
- package/examples/typescript/xy-dumbbell plot/package.json +1 -1
- package/examples/typescript/xy-dumbbell plot/webpack.config.js +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/webpack.config.js +1 -1
- package/examples/typescript/xy-line/package.json +1 -1
- package/examples/typescript/xy-line/webpack.config.js +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/webpack.config.js +1 -1
- package/examples/typescript/xy-live-data/package.json +1 -1
- package/examples/typescript/xy-live-data/webpack.config.js +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/webpack.config.js +1 -1
- package/examples/typescript/xy-ohlc/package.json +1 -1
- package/examples/typescript/xy-ohlc/webpack.config.js +1 -1
- package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/webpack.config.js +1 -1
- package/examples/typescript/xy-smoothed-line/package.json +1 -1
- package/examples/typescript/xy-smoothed-line/webpack.config.js +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/webpack.config.js +1 -1
- package/examples/typescript/xy-stacked-column/package.json +1 -1
- package/examples/typescript/xy-stacked-column/webpack.config.js +1 -1
- package/examples/typescript/xy-stacked-step/package.json +1 -1
- package/examples/typescript/xy-stacked-step/webpack.config.js +1 -1
- package/examples/typescript/xy-stock/package.json +1 -1
- package/examples/typescript/xy-stock/webpack.config.js +1 -1
- package/examples/typescript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/xy-stock-comparing/webpack.config.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,43 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
|
|
|
5
5
|
Please note, that this project, while following numbering syntax, it DOES NOT
|
|
6
6
|
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.
|
|
7
7
|
|
|
8
|
+
## [5.1.13] - 2022-04-15
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `useLastColorForLegendMarker` setting added to `BaseColumnSeries` (applicable to all column-based series like `ColumnSeries`, `CandlestickSeries`)
|
|
12
|
+
- `geodataNames` setting added to `MapSeries`. Allows setting translations to map features, e.g. countries. [More info](https://www.amcharts.com/docs/v5/charts/map-chart/map-translations/).
|
|
13
|
+
- Read-only private setting `gridInterval` added to `DateAxis`.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- If geoJSON contained multipolygons with just one polygon, hovering over polygon was resulting in a JS error.
|
|
17
|
+
- `DateAxis` displayed wrong time when time was switching to DST, when a timezone was set on a `Root` element.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [5.1.12] - 2022-04-07
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- Rounding a Date during daylight saving hour could produce incorrect result in some specific cases.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [5.1.11] - 2022-04-06
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
- `groupDataWithOriginals` and `groupDataCallback` settings added to `XYSeries`. [More info](https://www.amcharts.com/docs/v5/charts/xy-chart/axes/date-axis/#Custom_aggregation_functions).
|
|
30
|
+
- `strictMinMaxSelection` setting added to `ValueAxis`. When set to `true`, the axis won't round `min` and `max` of a selection to the nearest round values, but will use actual min and max (`extraMin` and `extraMax` will still be added if set). This is a good feature when your series displays not actual but derivative values, like `valueYChangeSelection` as it helps to avoid frequent jumping of series to adjusted min and max of the axis.
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- Internal layout of `XYChart` containers was changed. `plotContainers` now goes to `yAxesAndPlotContainer`, and `plotContainer` and `topPlotContainer` goe into `plotContainers`.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
- If `XYChart` was used without animated theme, and scrollbar's background was clicked to zoom to some specific spot, it resulted in scrollbar not being updated anymore when zoomed with wheel or zoom-out button.
|
|
37
|
+
- Fixed and issue where nodes of `ForceDirected` series were flickering to 0,0 point when div of a chart was resized.
|
|
38
|
+
- Fixed potential XSS injection issue with the accessibility of tooltips.
|
|
39
|
+
- `container` setting in `ExportingMenu` was being ignored.
|
|
40
|
+
- In some specific cases not all series were included in min/max calculation of a `ValueAxis` resulting not all series to be visible.
|
|
41
|
+
- When whole series was out of selected scope, its last or first value (depending on seleciton) was still included when calculating min and max.
|
|
42
|
+
- Layouts were allocating space for margins of hidden items.
|
|
43
|
+
|
|
44
|
+
|
|
8
45
|
## [5.1.10] - 2022-03-30
|
|
9
46
|
|
|
10
47
|
### Added
|
|
@@ -13,6 +50,7 @@ adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.
|
|
|
13
50
|
### Changed
|
|
14
51
|
- Logarithmic scale on `ValueAxis` was revamped with a different approach. No changes from the configration, but might influence appearance/scale.
|
|
15
52
|
- When calculating derivative values for series, `low`, `high`, and `open` used previous `low`, `high`, and `open` values. Now they all use `value` instead.
|
|
53
|
+
- Updated to D3 v7.
|
|
16
54
|
|
|
17
55
|
### Fixed
|
|
18
56
|
- In some cases, using a text placehodler, an empty string was shown insteaf of a zero.
|
|
@@ -1,94 +1,206 @@
|
|
|
1
1
|
import * as am5 from "@amcharts/amcharts5";
|
|
2
|
-
import * as am5xy from "@amcharts/amcharts5/xy";
|
|
3
|
-
import * as am5plugins_json from "@amcharts/amcharts5/plugins/json";
|
|
4
|
-
|
|
5
|
-
const root = am5.Root.new("chartdiv");
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
settings: {
|
|
10
|
-
panX: false,
|
|
11
|
-
panY: false,
|
|
12
|
-
wheelX: "panX",
|
|
13
|
-
wheelY: "zoomX",
|
|
14
|
-
},
|
|
15
|
-
children: [
|
|
16
|
-
],
|
|
17
|
-
}).then((chart) => {
|
|
18
|
-
root.container.children.push(chart);
|
|
3
|
+
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
|
|
4
|
+
import * as am5plugins_json from "@amcharts/amcharts5/plugins/json";
|
|
19
5
|
|
|
20
|
-
// Add cursor
|
|
21
|
-
// https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/
|
|
22
|
-
const cursor = chart.set("cursor", am5xy.XYCursor.new(root, {
|
|
23
|
-
behavior: "zoomX"
|
|
24
|
-
}));
|
|
25
|
-
cursor.lineY.set("visible", false);
|
|
26
6
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
7
|
+
// Create root element
|
|
8
|
+
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
|
|
9
|
+
const root = am5.Root.new("chartdiv");
|
|
30
10
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
value: value
|
|
37
|
-
};
|
|
38
|
-
}
|
|
11
|
+
// Set themes
|
|
12
|
+
// https://www.amcharts.com/docs/v5/concepts/themes/
|
|
13
|
+
root.setThemes([
|
|
14
|
+
am5themes_Animated.new(root)
|
|
15
|
+
]);
|
|
39
16
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return data;
|
|
46
|
-
}
|
|
17
|
+
// Specify date fields, so that they are formatted accordingly in tooltips
|
|
18
|
+
// https://www.amcharts.com/docs/v5/concepts/formatters/data-placeholders/#Formatting_placeholders
|
|
19
|
+
root.dateFormatter.setAll({
|
|
20
|
+
dateFields: ["valueX"]
|
|
21
|
+
});
|
|
47
22
|
|
|
48
23
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
24
|
+
async function main() {
|
|
25
|
+
const chart = await new am5plugins_json.JsonParser().parse(root, {
|
|
26
|
+
refs: {
|
|
27
|
+
data: [
|
|
28
|
+
{
|
|
29
|
+
"date": 1652425200000,
|
|
30
|
+
"value": 92
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"date": 1652511600000,
|
|
34
|
+
"value": 95
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"date": 1652598000000,
|
|
38
|
+
"value": 100
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": 1652684400000,
|
|
42
|
+
"value": 100
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"date": 1652770800000,
|
|
46
|
+
"value": 96
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"date": 1652857200000,
|
|
50
|
+
"value": 97
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"date": 1652943600000,
|
|
54
|
+
"value": 94
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"date": 1653030000000,
|
|
58
|
+
"value": 89
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"date": 1653116400000,
|
|
62
|
+
"value": 89
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": 1653202800000,
|
|
66
|
+
"value": 87
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"date": 1653289200000,
|
|
70
|
+
"value": 84
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"date": 1653375600000,
|
|
74
|
+
"value": 81
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"date": 1653462000000,
|
|
78
|
+
"value": 85
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"date": 1653548400000,
|
|
82
|
+
"value": 89
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"date": 1653634800000,
|
|
86
|
+
"value": 86
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"date": 1653721200000,
|
|
90
|
+
"value": 90
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"date": 1653807600000,
|
|
94
|
+
"value": 93
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"date": 1653894000000,
|
|
98
|
+
"value": 94
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"date": 1653980400000,
|
|
102
|
+
"value": 94
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"date": 1654066800000,
|
|
106
|
+
"value": 96
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
xAxis: {
|
|
110
|
+
type: "DateAxis",
|
|
111
|
+
settings: {
|
|
112
|
+
maxDeviation: 0.5,
|
|
113
|
+
baseInterval: {
|
|
114
|
+
timeUnit: "day",
|
|
115
|
+
count: 1
|
|
116
|
+
},
|
|
117
|
+
renderer: {
|
|
118
|
+
type: "AxisRendererX",
|
|
119
|
+
settings: {
|
|
120
|
+
pan: "zoom"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
tooltip: {
|
|
124
|
+
type: "Tooltip",
|
|
125
|
+
},
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
yAxis: {
|
|
129
|
+
type: "ValueAxis",
|
|
130
|
+
settings: {
|
|
131
|
+
maxDeviation: 1,
|
|
132
|
+
renderer: {
|
|
133
|
+
type: "AxisRendererY",
|
|
134
|
+
settings: {
|
|
135
|
+
pan: "zoom"
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
}
|
|
139
|
+
},
|
|
56
140
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
141
|
+
type: "XYChart",
|
|
142
|
+
settings: {
|
|
143
|
+
panX: false,
|
|
144
|
+
panY: false,
|
|
145
|
+
wheelX: "panX",
|
|
146
|
+
wheelY: "zoomX",
|
|
147
|
+
cursor: {
|
|
148
|
+
type: "XYCursor",
|
|
149
|
+
settings: {
|
|
150
|
+
behavior: "zoomX"
|
|
151
|
+
},
|
|
152
|
+
properties: {
|
|
153
|
+
lineY: {
|
|
154
|
+
settings: {
|
|
155
|
+
visible: false
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
scrollbarX: {
|
|
161
|
+
type: "Scrollbar",
|
|
162
|
+
settings: {
|
|
163
|
+
orientation: "horizontal"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
properties: {
|
|
168
|
+
xAxes: [
|
|
169
|
+
"#xAxis",
|
|
170
|
+
],
|
|
171
|
+
yAxes: [
|
|
172
|
+
"#yAxis",
|
|
173
|
+
],
|
|
174
|
+
series: [
|
|
175
|
+
{
|
|
176
|
+
type: "LineSeries",
|
|
177
|
+
settings: {
|
|
178
|
+
name: "Series",
|
|
179
|
+
xAxis: "#xAxis",
|
|
180
|
+
yAxis: "#yAxis",
|
|
181
|
+
valueYField: "value",
|
|
182
|
+
valueXField: "date",
|
|
183
|
+
tooltip: {
|
|
184
|
+
type: "Tooltip",
|
|
185
|
+
settings: {
|
|
186
|
+
labelText: "{valueX}: {valueY}"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
properties: {
|
|
191
|
+
data: "#data"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
});
|
|
88
197
|
|
|
198
|
+
root.container.children.push(chart);
|
|
89
199
|
|
|
90
200
|
// Make stuff animate on load
|
|
91
201
|
// https://www.amcharts.com/docs/v5/concepts/animations/#Forcing_appearance_animation
|
|
92
|
-
series.appear(1000);
|
|
202
|
+
chart.series.getIndex(0).appear(1000);
|
|
93
203
|
chart.appear(1000, 100);
|
|
94
|
-
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
main();
|