@amcharts/amcharts5 5.0.0-beta.32 → 5.0.0-beta.36
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/flow/Chord.d.ts.map +1 -1
- package/.internal/charts/flow/Chord.js +7 -0
- package/.internal/charts/flow/Chord.js.map +1 -1
- package/.internal/charts/flow/Flow.d.ts.map +1 -1
- package/.internal/charts/flow/Flow.js +2 -0
- package/.internal/charts/flow/Flow.js.map +1 -1
- package/.internal/charts/flow/FlowDefaultTheme.d.ts +8 -0
- package/.internal/charts/flow/FlowDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/flow/FlowDefaultTheme.js +214 -0
- package/.internal/charts/flow/FlowDefaultTheme.js.map +1 -0
- package/.internal/charts/hierarchy/BreadcrumbBar.d.ts.map +1 -1
- package/.internal/charts/hierarchy/BreadcrumbBar.js +2 -0
- package/.internal/charts/hierarchy/BreadcrumbBar.js.map +1 -1
- package/.internal/charts/hierarchy/Hierarchy.d.ts.map +1 -1
- package/.internal/charts/hierarchy/Hierarchy.js +2 -0
- package/.internal/charts/hierarchy/Hierarchy.js.map +1 -1
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.d.ts +8 -0
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js +367 -0
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js.map +1 -0
- package/.internal/charts/map/MapChart.d.ts.map +1 -1
- package/.internal/charts/map/MapChart.js +10 -8
- package/.internal/charts/map/MapChart.js.map +1 -1
- package/.internal/charts/map/MapChartDefaultTheme.d.ts +8 -0
- package/.internal/charts/map/MapChartDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/map/MapChartDefaultTheme.js +104 -0
- package/.internal/charts/map/MapChartDefaultTheme.js.map +1 -0
- package/.internal/charts/percent/PercentChart.d.ts +8 -1
- package/.internal/charts/percent/PercentChart.d.ts.map +1 -1
- package/.internal/charts/percent/PercentChart.js +9 -0
- package/.internal/charts/percent/PercentChart.js.map +1 -1
- package/.internal/charts/percent/PercentDefaultTheme.d.ts +8 -0
- package/.internal/charts/percent/PercentDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/percent/PercentDefaultTheme.js +214 -0
- package/.internal/charts/percent/PercentDefaultTheme.js.map +1 -0
- package/.internal/charts/percent/PercentSeries.d.ts +1 -1
- package/.internal/charts/percent/PercentSeries.d.ts.map +1 -1
- package/.internal/charts/percent/PercentSeries.js +1 -1
- package/.internal/charts/percent/PercentSeries.js.map +1 -1
- package/.internal/charts/pie/PieSeries.d.ts +0 -3
- package/.internal/charts/pie/PieSeries.d.ts.map +1 -1
- package/.internal/charts/pie/PieSeries.js +2 -2
- package/.internal/charts/pie/PieSeries.js.map +1 -1
- package/.internal/charts/radar/ClockHand.js +1 -1
- package/.internal/charts/radar/ClockHand.js.map +1 -1
- package/.internal/charts/radar/RadarChart.d.ts.map +1 -1
- package/.internal/charts/radar/RadarChart.js +2 -0
- package/.internal/charts/radar/RadarChart.js.map +1 -1
- package/.internal/charts/radar/RadarDefaultTheme.d.ts +8 -0
- package/.internal/charts/radar/RadarDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/radar/RadarDefaultTheme.js +102 -0
- package/.internal/charts/radar/RadarDefaultTheme.js.map +1 -0
- package/.internal/charts/venn/Venn.d.ts +147 -0
- package/.internal/charts/venn/Venn.d.ts.map +1 -0
- package/.internal/charts/venn/Venn.js +477 -0
- package/.internal/charts/venn/Venn.js.map +1 -0
- package/.internal/charts/venn/VennDefaultTheme.d.ts +8 -0
- package/.internal/charts/venn/VennDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/venn/VennDefaultTheme.js +37 -0
- package/.internal/charts/venn/VennDefaultTheme.js.map +1 -0
- package/.internal/charts/venn/vennjs/circleintersection.js +223 -0
- package/.internal/charts/venn/vennjs/diagram.js +604 -0
- package/.internal/charts/venn/vennjs/fmin/bisect.js +32 -0
- package/.internal/charts/venn/vennjs/fmin/blas1.js +28 -0
- package/.internal/charts/venn/vennjs/fmin/conjugateGradient.js +64 -0
- package/.internal/charts/venn/vennjs/fmin/gradientDescent.js +73 -0
- package/.internal/charts/venn/vennjs/fmin/index.js +5 -0
- package/.internal/charts/venn/vennjs/fmin/linesearch.js +72 -0
- package/.internal/charts/venn/vennjs/fmin/nelderMead.js +144 -0
- package/.internal/charts/venn/vennjs/index.d.ts +5 -0
- package/.internal/charts/venn/vennjs/index.js +6 -0
- package/.internal/charts/venn/vennjs/layout.js +677 -0
- package/.internal/charts/wordcloud/WordCloud.d.ts +184 -0
- package/.internal/charts/wordcloud/WordCloud.d.ts.map +1 -0
- package/.internal/charts/wordcloud/WordCloud.js +564 -0
- package/.internal/charts/wordcloud/WordCloud.js.map +1 -0
- package/.internal/charts/wordcloud/WordCloudDefaultTheme.d.ts +8 -0
- package/.internal/charts/wordcloud/WordCloudDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/wordcloud/WordCloudDefaultTheme.js +58 -0
- package/.internal/charts/wordcloud/WordCloudDefaultTheme.js.map +1 -0
- package/.internal/charts/xy/XYChart.d.ts +4 -4
- package/.internal/charts/xy/XYChart.d.ts.map +1 -1
- package/.internal/charts/xy/XYChart.js +4 -2
- package/.internal/charts/xy/XYChart.js.map +1 -1
- package/.internal/charts/xy/XYChartDefaultTheme.d.ts +8 -0
- package/.internal/charts/xy/XYChartDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/xy/XYChartDefaultTheme.js +605 -0
- package/.internal/charts/xy/XYChartDefaultTheme.js.map +1 -0
- package/.internal/charts/xy/axes/Axis.d.ts +1 -1
- package/.internal/charts/xy/axes/Axis.js.map +1 -1
- package/.internal/charts/xy/axes/CategoryAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/CategoryAxis.js +2 -6
- package/.internal/charts/xy/axes/CategoryAxis.js.map +1 -1
- package/.internal/charts/xy/axes/DateAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/DateAxis.js +6 -4
- package/.internal/charts/xy/axes/DateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/DurationAxis.d.ts +51 -0
- package/.internal/charts/xy/axes/DurationAxis.d.ts.map +1 -0
- package/.internal/charts/xy/axes/DurationAxis.js +162 -0
- package/.internal/charts/xy/axes/DurationAxis.js.map +1 -0
- package/.internal/charts/xy/axes/ValueAxis.d.ts +1 -0
- package/.internal/charts/xy/axes/ValueAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/ValueAxis.js +18 -8
- package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts +3 -1
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.js +47 -9
- package/.internal/charts/xy/series/BaseColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/XYSeries.js +15 -2
- package/.internal/charts/xy/series/XYSeries.js.map +1 -1
- package/.internal/core/Classes.d.ts +6 -0
- package/.internal/core/Classes.d.ts.map +1 -1
- package/.internal/core/Classes.js.map +1 -1
- package/.internal/core/Root.d.ts +13 -11
- package/.internal/core/Root.d.ts.map +1 -1
- package/.internal/core/Root.js +27 -17
- package/.internal/core/Root.js.map +1 -1
- package/.internal/core/render/Bullet.d.ts +1 -0
- package/.internal/core/render/Bullet.d.ts.map +1 -1
- package/.internal/core/render/Bullet.js.map +1 -1
- package/.internal/core/render/Container.js +1 -1
- package/.internal/core/render/Container.js.map +1 -1
- package/.internal/core/render/Graphics.js +1 -1
- package/.internal/core/render/Graphics.js.map +1 -1
- package/.internal/core/render/Legend.js +3 -3
- package/.internal/core/render/Legend.js.map +1 -1
- package/.internal/core/render/Rectangle.js +1 -1
- package/.internal/core/render/Rectangle.js.map +1 -1
- package/.internal/core/render/RoundedRectangle.js.map +1 -1
- package/.internal/core/render/Scrollbar.d.ts.map +1 -1
- package/.internal/core/render/Scrollbar.js +3 -3
- package/.internal/core/render/Scrollbar.js.map +1 -1
- package/.internal/core/render/Series.d.ts +1 -0
- package/.internal/core/render/Series.d.ts.map +1 -1
- package/.internal/core/render/Series.js +18 -0
- package/.internal/core/render/Series.js.map +1 -1
- package/.internal/core/render/Sprite.d.ts +17 -0
- package/.internal/core/render/Sprite.d.ts.map +1 -1
- package/.internal/core/render/Sprite.js +16 -0
- package/.internal/core/render/Sprite.js.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.d.ts +1 -0
- package/.internal/core/render/backend/CanvasRenderer.d.ts.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.js +54 -2
- package/.internal/core/render/backend/CanvasRenderer.js.map +1 -1
- package/.internal/core/render/backend/Renderer.d.ts +1 -0
- package/.internal/core/render/backend/Renderer.d.ts.map +1 -1
- package/.internal/core/render/backend/Renderer.js.map +1 -1
- package/.internal/core/util/DataProcessor.d.ts +0 -1
- package/.internal/core/util/DataProcessor.d.ts.map +1 -1
- package/.internal/core/util/DataProcessor.js +6 -13
- package/.internal/core/util/DataProcessor.js.map +1 -1
- package/.internal/core/util/DateFormatter.d.ts +1 -1
- package/.internal/core/util/DateFormatter.js +18 -18
- package/.internal/core/util/DateFormatter.js.map +1 -1
- package/.internal/core/util/DurationFormatter.d.ts +134 -0
- package/.internal/core/util/DurationFormatter.d.ts.map +1 -0
- package/.internal/core/util/DurationFormatter.js +521 -0
- package/.internal/core/util/DurationFormatter.js.map +1 -0
- package/.internal/core/util/Entity.d.ts +3 -0
- package/.internal/core/util/Entity.d.ts.map +1 -1
- package/.internal/core/util/Entity.js +26 -1
- package/.internal/core/util/Entity.js.map +1 -1
- package/.internal/core/util/Math.d.ts +9 -0
- package/.internal/core/util/Math.d.ts.map +1 -1
- package/.internal/core/util/Math.js +15 -0
- package/.internal/core/util/Math.js.map +1 -1
- package/.internal/core/util/NumberFormatter.d.ts.map +1 -1
- package/.internal/core/util/NumberFormatter.js +33 -28
- package/.internal/core/util/NumberFormatter.js.map +1 -1
- package/.internal/core/util/PopulateString.js +18 -1
- package/.internal/core/util/PopulateString.js.map +1 -1
- package/.internal/core/util/Utils.d.ts +1 -1
- package/.internal/core/util/Utils.d.ts.map +1 -1
- package/.internal/core/util/Utils.js +6 -3
- package/.internal/core/util/Utils.js.map +1 -1
- package/.internal/plugins/exporting/Annotator.d.ts +67 -0
- package/.internal/plugins/exporting/Annotator.d.ts.map +1 -0
- package/.internal/plugins/exporting/Annotator.js +301 -0
- package/.internal/plugins/exporting/Annotator.js.map +1 -0
- package/.internal/plugins/exporting/Exporting.js +2 -2
- package/.internal/plugins/exporting/Exporting.js.map +1 -1
- package/.internal/plugins/exporting/ExportingMenu.js +22 -22
- package/.internal/plugins/exporting/ExportingMenu.js.map +1 -1
- package/.internal/themes/AnimatedTheme.d.ts.map +1 -1
- package/.internal/themes/AnimatedTheme.js +1 -0
- package/.internal/themes/AnimatedTheme.js.map +1 -1
- package/.internal/themes/DefaultTheme.d.ts +10 -0
- package/.internal/themes/DefaultTheme.d.ts.map +1 -1
- package/.internal/themes/DefaultTheme.js +11 -1443
- package/.internal/themes/DefaultTheme.js.map +1 -1
- package/CHANGELOG.md +46 -0
- package/LICENSE-3RD-PARTY.md +1 -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/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/index.js +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/index.js +8 -4
- 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/README.md +6 -0
- package/examples/javascript/venn-diagram/index.css +11 -0
- package/examples/javascript/venn-diagram/index.html +12 -0
- package/examples/javascript/venn-diagram/index.js +59 -0
- package/examples/javascript/venn-diagram/package.json +16 -0
- package/examples/javascript/venn-diagram/webpack.config.js +38 -0
- package/examples/javascript/wordcloud-with-data/README.md +6 -0
- package/examples/javascript/wordcloud-with-data/index.css +11 -0
- package/examples/javascript/wordcloud-with-data/index.html +12 -0
- package/examples/javascript/wordcloud-with-data/index.js +115 -0
- package/examples/javascript/wordcloud-with-data/package.json +16 -0
- package/examples/javascript/wordcloud-with-data/webpack.config.js +38 -0
- package/examples/javascript/wordcloud-with-text/README.md +6 -0
- package/examples/javascript/wordcloud-with-text/index.css +11 -0
- package/examples/javascript/wordcloud-with-text/index.html +12 -0
- package/examples/javascript/wordcloud-with-text/index.js +35 -0
- package/examples/javascript/wordcloud-with-text/package.json +16 -0
- package/examples/javascript/wordcloud-with-text/webpack.config.js +38 -0
- package/examples/javascript/xy-100-percent-stacked-column/index.js +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/index.js +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/index.js +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-directed/package.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/typescript/flow-sankey/package.json +1 -1
- package/examples/typescript/gauge/package.json +1 -1
- package/examples/typescript/gauge-bands/package.json +1 -1
- package/examples/typescript/hierarchy-force-directed/package.json +1 -1
- package/examples/typescript/hierarchy-pack/package.json +1 -1
- package/examples/typescript/hierarchy-partition/package.json +1 -1
- package/examples/typescript/hierarchy-sunburst/package.json +1 -1
- package/examples/typescript/hierarchy-tree/package.json +1 -1
- package/examples/typescript/hierarchy-treemap/package.json +1 -1
- package/examples/typescript/map-animating-along-lines/package.json +1 -1
- package/examples/typescript/map-day-and-night/package.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/index.ts +1 -1
- package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/typescript/map-with-bubbles/package.json +1 -1
- package/examples/typescript/map-zoom-to-country/package.json +1 -1
- package/examples/typescript/misc-40-charts/package.json +1 -1
- package/examples/typescript/misc-microchart-grid/package.json +1 -1
- package/examples/typescript/pie-chart/package.json +1 -1
- package/examples/typescript/pie-donut-chart/package.json +1 -1
- package/examples/typescript/pie-variable-radius/package.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
- package/examples/typescript/radar-heat-map/package.json +1 -1
- package/examples/typescript/radar-line/package.json +1 -1
- package/examples/typescript/radar-time-line/index.ts +8 -4
- package/examples/typescript/radar-time-line/package.json +1 -1
- package/examples/typescript/sliced-funnel/package.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/typescript/sliced-pyramid/package.json +1 -1
- package/examples/typescript/venn-diagram/README.md +6 -0
- package/examples/typescript/venn-diagram/index.css +11 -0
- package/examples/typescript/venn-diagram/index.html +12 -0
- package/examples/typescript/venn-diagram/index.ts +59 -0
- package/examples/typescript/venn-diagram/package.json +18 -0
- package/examples/typescript/venn-diagram/tsconfig.json +12 -0
- package/examples/typescript/venn-diagram/webpack.config.js +45 -0
- package/examples/typescript/wordcloud-with-data/README.md +6 -0
- package/examples/typescript/wordcloud-with-data/index.css +11 -0
- package/examples/typescript/wordcloud-with-data/index.html +12 -0
- package/examples/typescript/wordcloud-with-data/index.ts +115 -0
- package/examples/typescript/wordcloud-with-data/package.json +18 -0
- package/examples/typescript/wordcloud-with-data/tsconfig.json +12 -0
- package/examples/typescript/wordcloud-with-data/webpack.config.js +45 -0
- package/examples/typescript/wordcloud-with-text/README.md +6 -0
- package/examples/typescript/wordcloud-with-text/index.css +11 -0
- package/examples/typescript/wordcloud-with-text/index.html +12 -0
- package/examples/typescript/wordcloud-with-text/index.ts +35 -0
- package/examples/typescript/wordcloud-with-text/package.json +18 -0
- package/examples/typescript/wordcloud-with-text/tsconfig.json +12 -0
- package/examples/typescript/wordcloud-with-text/webpack.config.js +45 -0
- package/examples/typescript/xy-100-percent-stacked-column/index.ts +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/typescript/xy-bubble/package.json +1 -1
- package/examples/typescript/xy-candlestick/package.json +1 -1
- package/examples/typescript/xy-clustered-column/index.ts +1 -1
- package/examples/typescript/xy-clustered-column/package.json +1 -1
- package/examples/typescript/xy-column/package.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/typescript/xy-data-grouping/package.json +1 -1
- package/examples/typescript/xy-draggable-range/package.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/typescript/xy-dumbbell plot/package.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/typescript/xy-line/package.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/typescript/xy-live-data/package.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/typescript/xy-ohlc/package.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/typescript/xy-smoothed-line/package.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/index.ts +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/typescript/xy-stacked-column/package.json +1 -1
- package/examples/typescript/xy-stacked-step/package.json +1 -1
- package/examples/typescript/xy-stock/package.json +1 -1
- package/examples/typescript/xy-stock-comparing/package.json +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +6 -1
- package/plugins/exporting.d.ts +1 -0
- package/plugins/exporting.d.ts.map +1 -1
- package/plugins/exporting.js +1 -0
- package/plugins/exporting.js.map +1 -1
- package/venn.d.ts +2 -0
- package/venn.d.ts.map +1 -0
- package/venn.js +2 -0
- package/venn.js.map +1 -0
- package/wc.d.ts +2 -0
- package/wc.d.ts.map +1 -0
- package/wc.js +2 -0
- package/wc.js.map +1 -0
- package/xy.d.ts +1 -0
- package/xy.d.ts.map +1 -1
- package/xy.js +1 -0
- package/xy.js.map +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "amcharts5-example-radar-column-iwatch-style",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@amcharts/amcharts5": "^5.0.0-beta.
|
|
6
|
+
"@amcharts/amcharts5": "^5.0.0-beta.36",
|
|
7
7
|
"source-map-loader": "^3.0.0",
|
|
8
8
|
"ts-loader": "^9.2.2",
|
|
9
9
|
"typescript": "^4.3.4",
|
|
@@ -9,10 +9,16 @@ import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
|
|
|
9
9
|
const root = am5.Root.new("chartdiv");
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
// Create custom theme
|
|
13
|
+
const myTheme = am5.Theme.new(root);
|
|
14
|
+
myTheme.rule("Label").set("fontSize", 10);
|
|
15
|
+
myTheme.rule("Grid").set("strokeOpacity", 0.06);
|
|
16
|
+
|
|
12
17
|
// Set themes
|
|
13
18
|
// https://www.amcharts.com/docs/v5/concepts/themes/
|
|
14
19
|
root.setThemes([
|
|
15
|
-
am5themes_Animated.new(root)
|
|
20
|
+
am5themes_Animated.new(root),
|
|
21
|
+
myTheme
|
|
16
22
|
]);
|
|
17
23
|
|
|
18
24
|
var temperatures = {
|
|
@@ -133,8 +139,6 @@ var temperatures = {
|
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
// Modify defaults
|
|
136
|
-
root.defaultTheme.rule("Label").set("fontSize", 10);
|
|
137
|
-
root.defaultTheme.rule("Grid").set("strokeOpacity", 0.06);
|
|
138
142
|
root.numberFormatter.set("numberFormat", "+#.0°C|#.0°C|0.0°C");
|
|
139
143
|
|
|
140
144
|
var startYear = 1973;
|
|
@@ -218,7 +222,7 @@ const series = chart.series.push(am5radar.RadarColumnSeries.new(root, {
|
|
|
218
222
|
series.columns.template.set("strokeOpacity", 0);
|
|
219
223
|
|
|
220
224
|
const tooltip = series.set("tooltip", am5.Tooltip.new(root, {}));
|
|
221
|
-
tooltip.label.set("text", "{categoryX}:{valueY}");
|
|
225
|
+
tooltip.label.set("text", "{categoryX}: {valueY}");
|
|
222
226
|
|
|
223
227
|
|
|
224
228
|
// Set up heat rules
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "amcharts5-example-sliced-pictorial-stacked",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@amcharts/amcharts5": "^5.0.0-beta.
|
|
6
|
+
"@amcharts/amcharts5": "^5.0.0-beta.36",
|
|
7
7
|
"source-map-loader": "^3.0.0",
|
|
8
8
|
"ts-loader": "^9.2.2",
|
|
9
9
|
"typescript": "^4.3.4",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background-color: #ffffff;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#chartdiv {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 80vh;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>amCharts 5 Example - venn-diagram</title>
|
|
6
|
+
<link rel="stylesheet" href="index.css" />
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="chartdiv"></div>
|
|
10
|
+
<script src="dist/index.js"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as am5 from "@amcharts/amcharts5";
|
|
2
|
+
import * as am5venn from "@amcharts/amcharts5/venn";
|
|
3
|
+
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
|
|
4
|
+
|
|
5
|
+
// Create root
|
|
6
|
+
let root = am5.Root.new("chartdiv");
|
|
7
|
+
|
|
8
|
+
// Set themes
|
|
9
|
+
root.setThemes([
|
|
10
|
+
am5themes_Animated.new(root)
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
// Create wrapper container
|
|
14
|
+
let container = root.container.children.push(am5.Container.new(root, {
|
|
15
|
+
width: am5.p100,
|
|
16
|
+
height: am5.p100,
|
|
17
|
+
layout: root.verticalLayout
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
// Create venn series
|
|
21
|
+
let chart = container.children.push(am5venn.Venn.new(root, {
|
|
22
|
+
categoryField: "name",
|
|
23
|
+
valueField: "value",
|
|
24
|
+
intersectionsField: "sets",
|
|
25
|
+
paddingTop: 40,
|
|
26
|
+
paddingBottom: 40,
|
|
27
|
+
paddingLeft: 40,
|
|
28
|
+
paddingRight: 40
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
// Set data
|
|
32
|
+
chart.data.setAll([
|
|
33
|
+
{ name: "A", value: 10 },
|
|
34
|
+
{ name: "B", value: 10 },
|
|
35
|
+
{ name: "C", value: 5 },
|
|
36
|
+
{ name: "X", value: 4, sets: ["A", "B"] },
|
|
37
|
+
{ name: "Y", value: 2, sets: ["A", "C"] },
|
|
38
|
+
{ name: "Z", value: 2, sets: ["B", "C"] },
|
|
39
|
+
{ name: "Q", value: 1, sets: ["A", "B", "C"]
|
|
40
|
+
}]);
|
|
41
|
+
|
|
42
|
+
// Set tooltip content
|
|
43
|
+
chart.slices.template.set("tooltipText", "{category}: {value}");
|
|
44
|
+
|
|
45
|
+
// Set up hover appearance
|
|
46
|
+
chart.hoverGraphics.setAll({
|
|
47
|
+
strokeDasharray: [3, 3],
|
|
48
|
+
stroke: am5.color(0xffffff),
|
|
49
|
+
strokeWidth: 2
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// Add legend
|
|
53
|
+
let legend = container.children.push(
|
|
54
|
+
am5.Legend.new(root, {
|
|
55
|
+
centerX: am5.p50,
|
|
56
|
+
x: am5.p50
|
|
57
|
+
})
|
|
58
|
+
);
|
|
59
|
+
legend.data.setAll(chart.dataItems);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "amcharts5-example-venn-diagram",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"@amcharts/amcharts5": "^5.0.0-beta.36",
|
|
7
|
+
"source-map-loader": "^3.0.0",
|
|
8
|
+
"ts-loader": "^9.2.2",
|
|
9
|
+
"typescript": "^4.3.4",
|
|
10
|
+
"webpack": "^5.1.3",
|
|
11
|
+
"webpack-cli": "^4.1.0",
|
|
12
|
+
"webpack-dev-server": "^3.11.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "webpack",
|
|
16
|
+
"start": "webpack serve --mode development"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var $path = require("path");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
mode: "production",
|
|
5
|
+
|
|
6
|
+
devtool: "source-map",
|
|
7
|
+
|
|
8
|
+
stats: "errors-warnings",
|
|
9
|
+
|
|
10
|
+
target: ["web", "es5"],
|
|
11
|
+
|
|
12
|
+
entry: {
|
|
13
|
+
index: "./index.ts",
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
devServer: {
|
|
17
|
+
publicPath: "/dist/",
|
|
18
|
+
liveReload: true,
|
|
19
|
+
overlay: true,
|
|
20
|
+
noInfo: true,
|
|
21
|
+
open: true
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
output: {
|
|
25
|
+
path: $path.join(__dirname, "dist"),
|
|
26
|
+
publicPath: "dist/",
|
|
27
|
+
filename: "[name].js",
|
|
28
|
+
chunkFilename: "[name].js"
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
resolve: {
|
|
32
|
+
extensions: [".ts", ".tsx", ".js"]
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
module: {
|
|
36
|
+
rules: [{
|
|
37
|
+
test: /.tsx?$/,
|
|
38
|
+
loader: "ts-loader"
|
|
39
|
+
}, {
|
|
40
|
+
test: /.js$/,
|
|
41
|
+
use: ["source-map-loader"],
|
|
42
|
+
enforce: "pre"
|
|
43
|
+
}]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background-color: #ffffff;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#chartdiv {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 80vh;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>amCharts 5 Example - wordcloud-with-data</title>
|
|
6
|
+
<link rel="stylesheet" href="index.css" />
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="chartdiv"></div>
|
|
10
|
+
<script src="dist/index.js"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as am5 from "@amcharts/amcharts5";
|
|
2
|
+
import * as am5wc from "@amcharts/amcharts5/wc";
|
|
3
|
+
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Create root element
|
|
7
|
+
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
|
|
8
|
+
const root = am5.Root.new("chartdiv");
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// Set themes
|
|
12
|
+
// https://www.amcharts.com/docs/v5/concepts/themes/
|
|
13
|
+
root.setThemes([
|
|
14
|
+
am5themes_Animated.new(root)
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
// Add wrapper container
|
|
19
|
+
let container = root.container.children.push(am5.Container.new(root, {
|
|
20
|
+
width: am5.percent(100),
|
|
21
|
+
height: am5.percent(100),
|
|
22
|
+
layout: root.verticalLayout
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// Add chart title
|
|
27
|
+
let title = container.children.push(am5.Label.new(root, {
|
|
28
|
+
text: "Most popular languages on StackOverflow",
|
|
29
|
+
fontSize: 20,
|
|
30
|
+
x: am5.percent(50),
|
|
31
|
+
centerX: am5.percent(50)
|
|
32
|
+
}));
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
// Add series
|
|
36
|
+
// https://www.amcharts.com/docs/v5/charts/word-cloud/
|
|
37
|
+
var series = container.children.push(am5wc.WordCloud.new(root, {
|
|
38
|
+
categoryField: "tag",
|
|
39
|
+
valueField: "weight",
|
|
40
|
+
calculateAggregates: true // this is needed for heat rules to work
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
// Set up heat rules
|
|
45
|
+
// https://www.amcharts.com/docs/v5/charts/word-cloud/#Via_heat_rules
|
|
46
|
+
series.set("heatRules", [{
|
|
47
|
+
target: series.labels.template,
|
|
48
|
+
dataField: "value",
|
|
49
|
+
min: am5.color(0xFFD4C2),
|
|
50
|
+
max: am5.color(0xFF621F),
|
|
51
|
+
key: "fill"
|
|
52
|
+
}]);
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
// Configure labels
|
|
56
|
+
series.labels.template.setAll({
|
|
57
|
+
paddingTop: 5,
|
|
58
|
+
paddingBottom: 5,
|
|
59
|
+
paddingLeft: 5,
|
|
60
|
+
paddingRight: 5,
|
|
61
|
+
fontFamily: "Courier New",
|
|
62
|
+
cursorOverStyle: "pointer"
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
// Add click event on words
|
|
67
|
+
// https://www.amcharts.com/docs/v5/charts/word-cloud/#Events
|
|
68
|
+
series.labels.template.events.on("click", (ev: any) => {
|
|
69
|
+
const category = ev.target.dataItem.get("category");
|
|
70
|
+
window.open("https://stackoverflow.com/questions/tagged/" + encodeURIComponent(category));
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Data from:
|
|
75
|
+
// https://insights.stackoverflow.com/survey/2021#section-most-popular-technologies-programming-scripting-and-markup-languages
|
|
76
|
+
series.data.setAll([
|
|
77
|
+
{ tag: "JavaScript", weight: 64.96 },
|
|
78
|
+
{ tag: "HTML/CSS", weight: 56.07 },
|
|
79
|
+
{ tag: "Python", weight: 48.24 },
|
|
80
|
+
{ tag: "SQL", weight: 47.08 },
|
|
81
|
+
{ tag: "Java", weight: 35.35 },
|
|
82
|
+
{ tag: "Node.js", weight: 33.91 },
|
|
83
|
+
{ tag: "TypeScript", weight: 30.19 },
|
|
84
|
+
{ tag: "C#", weight: 27.86 },
|
|
85
|
+
{ tag: "Bash/Shell", weight: 27.13 },
|
|
86
|
+
{ tag: "C++", weight: 24.31 },
|
|
87
|
+
{ tag: "PHP", weight: 21.98 },
|
|
88
|
+
{ tag: "C", weight: 21.01 },
|
|
89
|
+
{ tag: "PowerShell", weight: 10.75 },
|
|
90
|
+
{ tag: "Go", weight: 9.55 },
|
|
91
|
+
{ tag: "Kotlin", weight: 8.32 },
|
|
92
|
+
{ tag: "Rust", weight: 7.03 },
|
|
93
|
+
{ tag: "Ruby", weight: 6.75 },
|
|
94
|
+
{ tag: "Dart", weight: 6.02 },
|
|
95
|
+
{ tag: "Assembly", weight: 5.61 },
|
|
96
|
+
{ tag: "Swift", weight: 5.1 },
|
|
97
|
+
{ tag: "R", weight: 5.07 },
|
|
98
|
+
{ tag: "VBA", weight: 4.66 },
|
|
99
|
+
{ tag: "Matlab", weight: 4.66 },
|
|
100
|
+
{ tag: "Groovy", weight: 3.01 },
|
|
101
|
+
{ tag: "Objective-C", weight: 2.8 },
|
|
102
|
+
{ tag: "Scala", weight: 2.6 },
|
|
103
|
+
{ tag: "Perl", weight: 2.46 },
|
|
104
|
+
{ tag: "Haskell", weight: 2.12 },
|
|
105
|
+
{ tag: "Delphi", weight: 2.1 },
|
|
106
|
+
{ tag: "Clojure", weight: 1.88 },
|
|
107
|
+
{ tag: "Elixir", weight: 1.74 },
|
|
108
|
+
{ tag: "LISP", weight: 1.33 },
|
|
109
|
+
{ tag: "Julia", weight: 1.29 },
|
|
110
|
+
{ tag: "F#", weight: 0.97 },
|
|
111
|
+
{ tag: "Erlang", weight: 0.79 },
|
|
112
|
+
{ tag: "APL", weight: 0.65 },
|
|
113
|
+
{ tag: "Crystal", weight: 0.56 },
|
|
114
|
+
{ tag: "COBOL", weight: 0.53 },
|
|
115
|
+
]);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "amcharts5-example-wordcloud-with-data",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"@amcharts/amcharts5": "^5.0.0-beta.36",
|
|
7
|
+
"source-map-loader": "^3.0.0",
|
|
8
|
+
"ts-loader": "^9.2.2",
|
|
9
|
+
"typescript": "^4.3.4",
|
|
10
|
+
"webpack": "^5.1.3",
|
|
11
|
+
"webpack-cli": "^4.1.0",
|
|
12
|
+
"webpack-dev-server": "^3.11.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "webpack",
|
|
16
|
+
"start": "webpack serve --mode development"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var $path = require("path");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
mode: "production",
|
|
5
|
+
|
|
6
|
+
devtool: "source-map",
|
|
7
|
+
|
|
8
|
+
stats: "errors-warnings",
|
|
9
|
+
|
|
10
|
+
target: ["web", "es5"],
|
|
11
|
+
|
|
12
|
+
entry: {
|
|
13
|
+
index: "./index.ts",
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
devServer: {
|
|
17
|
+
publicPath: "/dist/",
|
|
18
|
+
liveReload: true,
|
|
19
|
+
overlay: true,
|
|
20
|
+
noInfo: true,
|
|
21
|
+
open: true
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
output: {
|
|
25
|
+
path: $path.join(__dirname, "dist"),
|
|
26
|
+
publicPath: "dist/",
|
|
27
|
+
filename: "[name].js",
|
|
28
|
+
chunkFilename: "[name].js"
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
resolve: {
|
|
32
|
+
extensions: [".ts", ".tsx", ".js"]
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
module: {
|
|
36
|
+
rules: [{
|
|
37
|
+
test: /.tsx?$/,
|
|
38
|
+
loader: "ts-loader"
|
|
39
|
+
}, {
|
|
40
|
+
test: /.js$/,
|
|
41
|
+
use: ["source-map-loader"],
|
|
42
|
+
enforce: "pre"
|
|
43
|
+
}]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background-color: #ffffff;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#chartdiv {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 80vh;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>amCharts 5 Example - wordcloud-with-text</title>
|
|
6
|
+
<link rel="stylesheet" href="index.css" />
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="chartdiv"></div>
|
|
10
|
+
<script src="dist/index.js"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as am5 from "@amcharts/amcharts5";
|
|
2
|
+
import * as am5wc from "@amcharts/amcharts5/wc";
|
|
3
|
+
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Create root element
|
|
7
|
+
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
|
|
8
|
+
const root = am5.Root.new("chartdiv");
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// Set themes
|
|
12
|
+
// https://www.amcharts.com/docs/v5/concepts/themes/
|
|
13
|
+
root.setThemes([
|
|
14
|
+
am5themes_Animated.new(root)
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
// Add series
|
|
19
|
+
// https://www.amcharts.com/docs/v5/charts/word-cloud/
|
|
20
|
+
var series = root.container.children.push(am5wc.WordCloud.new(root, {
|
|
21
|
+
maxCount: 150,
|
|
22
|
+
maxFontSize: am5.percent(25),
|
|
23
|
+
minWordLength: 2,
|
|
24
|
+
text: "Though yet of Hamlet our dear brother's death The memory be green, and that it us befitted To bear our hearts in grief and our whole kingdom To be contracted in one brow of woe, Yet so far hath discretion fought with nature That we with wisest sorrow think on him, Together with remembrance of ourselves. Therefore our sometime sister, now our queen, The imperial jointress to this warlike state, Have we, as 'twere with a defeated joy,-- With an auspicious and a dropping eye, With mirth in funeral and with dirge in marriage, In equal scale weighing delight and dole,-- Taken to wife: nor have we herein barr'd Your better wisdoms, which have freely gone With this affair along. For all, our thanks. Now follows, that you know, young Fortinbras, Holding a weak supposal of our worth, Or thinking by our late dear brother's death Our state to be disjoint and out of frame, Colleagued with the dream of his advantage, He hath not fail'd to pester us with message, Importing the surrender of those lands Lost by his father, with all bonds of law, To our most valiant brother. So much for him. Now for ourself and for this time of meeting: Thus much the business is: we have here writ To Norway, uncle of young Fortinbras,-- Who, impotent and bed-rid, scarcely hears Of this his nephew's purpose,--to suppress His further gait herein; in that the levies, The lists and full proportions, are all made Out of his subject: and we here dispatch You, good Cornelius, and you, Voltimand, For bearers of this greeting to old Norway; Giving to you no further personal power To business with the king, more than the scope Of these delated articles allow. Farewell, and let your haste commend your duty. Tis sweet and commendable in your nature, Hamlet,To give these mourning duties to your father: But, you must know, your father lost a father; That father lost, lost his, and the survivor bound In filial obligation for some term To do obsequious sorrow: but to persever In obstinate condolement is a course Of impious stubbornness; 'tis unmanly grief; It shows a will most incorrect to heaven, A heart unfortified, a mind impatient, An understanding simple and unschool'd: For what we know must be and is as common As any the most vulgar thing to sense, Why should we in our peevish opposition Take it to heart? Fie! 'tis a fault to heaven, A fault against the dead, a fault to nature, To reason most absurd: whose common theme Is death of fathers, and who still hath cried, From the first corse till he that died to-day, 'This must be so.' We pray you, throw to earth This unprevailing woe, and think of us As of a father: for let the world take note, You are the most immediate to our throne; And with no less nobility of love Than that which dearest father bears his son, Do I impart toward you. For your intent In going back to school in Wittenberg, It is most retrograde to our desire: And we beseech you, bend you to remain Here, in the cheer and comfort of our eye, Our chiefest courtier, cousin, and our son.",
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
// Configure labels
|
|
29
|
+
series.labels.template.setAll({
|
|
30
|
+
paddingTop: 5,
|
|
31
|
+
paddingBottom: 5,
|
|
32
|
+
paddingLeft: 5,
|
|
33
|
+
paddingRight: 5,
|
|
34
|
+
fontFamily: "Courier New"
|
|
35
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "amcharts5-example-wordcloud-with-text",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"@amcharts/amcharts5": "^5.0.0-beta.36",
|
|
7
|
+
"source-map-loader": "^3.0.0",
|
|
8
|
+
"ts-loader": "^9.2.2",
|
|
9
|
+
"typescript": "^4.3.4",
|
|
10
|
+
"webpack": "^5.1.3",
|
|
11
|
+
"webpack-cli": "^4.1.0",
|
|
12
|
+
"webpack-dev-server": "^3.11.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "webpack",
|
|
16
|
+
"start": "webpack serve --mode development"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var $path = require("path");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
mode: "production",
|
|
5
|
+
|
|
6
|
+
devtool: "source-map",
|
|
7
|
+
|
|
8
|
+
stats: "errors-warnings",
|
|
9
|
+
|
|
10
|
+
target: ["web", "es5"],
|
|
11
|
+
|
|
12
|
+
entry: {
|
|
13
|
+
index: "./index.ts",
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
devServer: {
|
|
17
|
+
publicPath: "/dist/",
|
|
18
|
+
liveReload: true,
|
|
19
|
+
overlay: true,
|
|
20
|
+
noInfo: true,
|
|
21
|
+
open: true
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
output: {
|
|
25
|
+
path: $path.join(__dirname, "dist"),
|
|
26
|
+
publicPath: "dist/",
|
|
27
|
+
filename: "[name].js",
|
|
28
|
+
chunkFilename: "[name].js"
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
resolve: {
|
|
32
|
+
extensions: [".ts", ".tsx", ".js"]
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
module: {
|
|
36
|
+
rules: [{
|
|
37
|
+
test: /.tsx?$/,
|
|
38
|
+
loader: "ts-loader"
|
|
39
|
+
}, {
|
|
40
|
+
test: /.js$/,
|
|
41
|
+
use: ["source-map-loader"],
|
|
42
|
+
enforce: "pre"
|
|
43
|
+
}]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -100,7 +100,7 @@ function makeSeries(name: string, fieldName: string) {
|
|
|
100
100
|
}));
|
|
101
101
|
|
|
102
102
|
series.columns.template.setAll({
|
|
103
|
-
tooltipText: "{name}, {categoryX}:{valueYTotalPercent.formatNumber('#.#')}%",
|
|
103
|
+
tooltipText: "{name}, {categoryX}: {valueYTotalPercent.formatNumber('#.#')}%",
|
|
104
104
|
tooltipY: am5.percent(10)
|
|
105
105
|
});
|
|
106
106
|
series.data.setAll(data);
|