@amcharts/amcharts5-mcp 1.4.0 → 1.6.0
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/content/SKILL.md +135 -7
- package/content/flow.md +7 -0
- package/content/hierarchy.md +21 -0
- package/content/map.md +107 -9
- package/content/pie.md +22 -0
- package/content/radar.md +1 -1
- package/content/timeline.md +3 -3
- package/content/venn.md +6 -0
- package/content/wordcloud.md +2 -0
- package/content/xy.md +32 -2
- package/extended/charts/map-chart/map-line-series.md +110 -1
- package/extended/charts/map-chart/map-point-series.md +110 -1
- package/extended/charts/map-chart/map-polygon-series.md +47 -0
- package/extended/charts/xy-chart/axes/category-axis.md +2 -0
- package/extended/concepts/animations.md +136 -2
- package/extended/concepts/data.md +2 -0
- package/extended/concepts/events.md +14 -0
- package/extended/concepts/serializing/chart-serializer.md +64 -24
- package/extended/concepts/serializing.md +17 -0
- package/extended/concepts/settings/template-fields.md +24 -0
- package/extended/examples/candlestick-ohlc/box-plot-chart.md +78 -73
- package/extended/examples/candlestick-ohlc/candlestick-chart.md +2 -5
- package/extended/examples/candlestick-ohlc/ohlc-chart.md +3 -6
- package/extended/examples/candlestick-ohlc/on-demand-data-loading.md +7 -7
- package/extended/examples/candlestick-ohlc/professional-candlesticks.md +3 -6
- package/extended/examples/candlestick-ohlc/stock-chart-candlesticks.md +1 -1
- package/extended/examples/column-bar/100-stacked-column-chart.md +3 -3
- package/extended/examples/column-bar/bar-and-line-chart-mix.md +3 -12
- package/extended/examples/column-bar/bar-chart-race.md +4 -11
- package/extended/examples/column-bar/bars-with-moving-bullets.md +1 -1
- package/extended/examples/column-bar/bullet-chart.md +1 -1
- package/extended/examples/column-bar/carbon-zero-progress.md +2 -3
- package/extended/examples/column-bar/clustered-bar-chart.md +3 -13
- package/extended/examples/column-bar/clustered-column-chart.md +2 -2
- package/extended/examples/column-bar/column-and-line-mix.md +1 -1
- package/extended/examples/column-bar/column-chart-images-top.md +4 -10
- package/extended/examples/column-bar/column-with-rotated-series.md +4 -11
- package/extended/examples/column-bar/columns-with-grainy-gradients.md +4 -5
- package/extended/examples/column-bar/columns-with-moving-bullets.md +1 -1
- package/extended/examples/column-bar/curved-columns.md +4 -10
- package/extended/examples/column-bar/divergent-stacked-bars.md +1 -10
- package/extended/examples/column-bar/drag-and-change-column-value.md +4 -11
- package/extended/examples/column-bar/drag-ordering-of-bars.md +1 -1
- package/extended/examples/column-bar/dumbbell-plot.md +1 -1
- package/extended/examples/column-bar/floating-bar-chart.md +2 -3
- package/extended/examples/column-bar/grouped-and-sorted-columns.md +4 -10
- package/extended/examples/column-bar/grouped-stacks.md +1 -1
- package/extended/examples/column-bar/heat-map-with-legend.md +8 -8
- package/extended/examples/column-bar/horizontal-dumbbell-plot.md +1 -1
- package/extended/examples/column-bar/images-as-categories.md +16 -18
- package/extended/examples/column-bar/layered-column-chart.md +1 -1
- package/extended/examples/column-bar/lollipop-chart.md +1 -1
- package/extended/examples/column-bar/pareto-diagram.md +4 -7
- package/extended/examples/column-bar/partitioned-bar-chart.md +1 -1
- package/extended/examples/column-bar/pictorial-column-chart.md +1 -1
- package/extended/examples/column-bar/real-time-data-sorting.md +4 -11
- package/extended/examples/column-bar/risk-heatmap.md +9 -9
- package/extended/examples/column-bar/simple-column-chart.md +3 -3
- package/extended/examples/column-bar/sorted-bar-chart.md +4 -12
- package/extended/examples/column-bar/stacked-bar-chart-with-negative-values.md +1 -1
- package/extended/examples/column-bar/stacked-bar-chart.md +1 -1
- package/extended/examples/column-bar/stacked-clustered-column-chart.md +1 -1
- package/extended/examples/column-bar/stacked-column-chart.md +1 -1
- package/extended/examples/column-bar/stacked-waterfall-chart.md +1 -1
- package/extended/examples/column-bar/step-count-chart.md +1 -1
- package/extended/examples/column-bar/variance-indicators.md +1 -1
- package/extended/examples/column-bar/waffle-chart.md +1 -1
- package/extended/examples/column-bar/waterfall-chart.md +1 -1
- package/extended/examples/dashboards/maps-and-charts-dashboard.md +1 -1
- package/extended/examples/dashboards/road-trip-dashboard-with-map.md +24 -23
- package/extended/examples/flow/animated-sankey-diagram.md +200 -202
- package/extended/examples/flow/chord-diagram-with-animated-bullets.md +4 -2
- package/extended/examples/flow/chord-diagram.md +6 -4
- package/extended/examples/flow/horizontal-arc-diagram.md +4 -2
- package/extended/examples/flow/non-ribbon-chord-diagram.md +6 -4
- package/extended/examples/flow/sankey-diagram.md +4 -2
- package/extended/examples/flow/toggleable-chord-diagram.md +4 -2
- package/extended/examples/flow/traceable-sankey-diagram.md +4 -2
- package/extended/examples/flow/vertical-arc-diagram.md +4 -2
- package/extended/examples/flow/vertical-sankey-diagram.md +11 -19
- package/extended/examples/funnel-pyramid/funnel-chart-with-rounded-corners.md +1 -1
- package/extended/examples/funnel-pyramid/funnel-chart.md +1 -1
- package/extended/examples/funnel-pyramid/funnel-with-gradient-fill.md +1 -1
- package/extended/examples/funnel-pyramid/horizontal-funnel.md +1 -1
- package/extended/examples/funnel-pyramid/horizontal-pictorial-chart.md +1 -1
- package/extended/examples/funnel-pyramid/pictorial-chart.md +1 -1
- package/extended/examples/funnel-pyramid/pictorial-fraction-chart.md +1 -1
- package/extended/examples/funnel-pyramid/pictorial-stacked-chart.md +1 -1
- package/extended/examples/funnel-pyramid/pyramid-chart.md +1 -1
- package/extended/examples/gantt/editable-multilevel-gantt-chart.md +1 -1
- package/extended/examples/gantt/gantt-chart-dates.md +1 -1
- package/extended/examples/gantt/gantt-chart-in-read-only-mode.md +1 -1
- package/extended/examples/gantt/gantt-chart-playground.md +4 -3
- package/extended/examples/gantt/gantt-chart.md +1 -1
- package/extended/examples/gantt/gantt-with-hundreds-of-items.md +1 -1
- package/extended/examples/gauges/angular-gauge-with-two-axes.md +1 -1
- package/extended/examples/gauges/angular-gauge.md +1 -1
- package/extended/examples/gauges/animated-gauge.md +1 -1
- package/extended/examples/gauges/clock-with-two-faces.md +1 -1
- package/extended/examples/gauges/clock.md +1 -1
- package/extended/examples/gauges/compass-chart.md +1 -1
- package/extended/examples/gauges/gauge-with-bands.md +1 -1
- package/extended/examples/gauges/gauge-with-gradient-fill.md +1 -1
- package/extended/examples/gauges/multi-part-gauge.md +1 -1
- package/extended/examples/gauges/solid-gauge.md +1 -1
- package/extended/examples/gauges/yes-and-no-gauge.md +1 -1
- package/extended/examples/hierarchy/collapsible-force-directed-tree.md +3 -3
- package/extended/examples/hierarchy/drill-down-sunburst-chart.md +4 -4
- package/extended/examples/hierarchy/drill-down-treemap.md +5 -5
- package/extended/examples/hierarchy/dynamic-data-updates-on-treemap.md +4 -4
- package/extended/examples/hierarchy/force-directed-adding-links.md +4 -4
- package/extended/examples/hierarchy/force-directed-network.md +4 -4
- package/extended/examples/hierarchy/force-directed-tree-with-animated-bullets.md +11 -10
- package/extended/examples/hierarchy/force-directed-tree.md +3 -3
- package/extended/examples/hierarchy/horizontal-partition-chart.md +3 -3
- package/extended/examples/hierarchy/multilevel-tree-map.md +11 -10
- package/extended/examples/hierarchy/packed-circle-chart.md +3 -3
- package/extended/examples/hierarchy/rectangular-voronoi-tree-map.md +4 -2
- package/extended/examples/hierarchy/simple-treemap.md +4 -4
- package/extended/examples/hierarchy/single-level-packed-circles.md +11 -10
- package/extended/examples/hierarchy/sunburst-chart.md +3 -3
- package/extended/examples/hierarchy/sunburst-flavor-wheel.md +18 -21
- package/extended/examples/hierarchy/tree-chart.md +11 -10
- package/extended/examples/hierarchy/vertical-partition-chart.md +3 -3
- package/extended/examples/hierarchy/voronoi-treemap.md +11 -10
- package/extended/examples/hierarchy/zoomable-force-directed-tree.md +11 -10
- package/extended/examples/line-area/100-stacked-area-chart.md +3 -4
- package/extended/examples/line-area/animated-bullet-at-the-end-of-the-series.md +1 -1
- package/extended/examples/line-area/area-with-time-based-data.md +2 -3
- package/extended/examples/line-area/chart-with-gaps-in-data.md +2 -3
- package/extended/examples/line-area/comparing-different-date-values-google-analytics-style.md +2 -3
- package/extended/examples/line-area/control-chart.md +1 -1
- package/extended/examples/line-area/data-grouping-50k-points.md +1 -2
- package/extended/examples/line-area/date-axis-with-labels-near-minor-grid-lines.md +1 -1
- package/extended/examples/line-area/date-based-data.md +1 -1
- package/extended/examples/line-area/date-based-line-chart.md +4 -4
- package/extended/examples/line-area/divergent-lines.md +2 -3
- package/extended/examples/line-area/draggable-range-with-close-button.md +1 -1
- package/extended/examples/line-area/drawing-chart-series-with-mouse-or-touch.md +1 -1
- package/extended/examples/line-area/duration-on-value-axis.md +8 -8
- package/extended/examples/line-area/error-chart.md +2 -3
- package/extended/examples/line-area/evenly-spaced-date-axis.md +1 -1
- package/extended/examples/line-area/highlighting-line-chart-series-on-legend-hover.md +1 -1
- package/extended/examples/line-area/line-chart-adding-data-every-second.md +1 -1
- package/extended/examples/line-area/line-chart-with-horizontal-target.md +1 -1
- package/extended/examples/line-area/line-chart-with-range-slider.md +1 -1
- package/extended/examples/line-area/line-chart-with-scroll-and-zoom.md +1 -1
- package/extended/examples/line-area/line-different-colors-ups-downs.md +1 -1
- package/extended/examples/line-area/line-graph.md +1 -1
- package/extended/examples/line-area/line-with-changing-color.md +1 -1
- package/extended/examples/line-area/line-with-custom-bullets.md +21 -18
- package/extended/examples/line-area/line-with-data-labels.md +1 -1
- package/extended/examples/line-area/live-data.md +1 -1
- package/extended/examples/line-area/live-order-book-depth-chart.md +9 -15
- package/extended/examples/line-area/logarithmic-scale.md +1 -1
- package/extended/examples/line-area/manipulate-chart-data-with-mouse.md +1 -1
- package/extended/examples/line-area/mixed-daily-and-intra-day-chart.md +1 -1
- package/extended/examples/line-area/multiple-date-axes.md +1 -1
- package/extended/examples/line-area/multiple-value-axes.md +1 -1
- package/extended/examples/line-area/no-gap-date-axis.md +1 -1
- package/extended/examples/line-area/process-control-chart.md +1 -1
- package/extended/examples/line-area/range-area-chart.md +1 -1
- package/extended/examples/line-area/range-chart-with-different-fill-colors.md +2 -2
- package/extended/examples/line-area/reversed-value-axis.md +2 -3
- package/extended/examples/line-area/selecting-and-marking-multiple-ranges.md +1 -2
- package/extended/examples/line-area/show-percentage-change.md +1 -1
- package/extended/examples/line-area/smoothed-line-chart.md +1 -1
- package/extended/examples/line-area/smoothed-stacked-area.md +2 -3
- package/extended/examples/line-area/spline-graph.md +1 -1
- package/extended/examples/line-area/stacked-area.md +2 -3
- package/extended/examples/line-area/step-line-chart.md +1 -1
- package/extended/examples/line-area/step-line-without-risers.md +1 -1
- package/extended/examples/line-area/stream-chart.md +2 -3
- package/extended/examples/line-area/trend-lines.md +1 -1
- package/extended/examples/line-area/vertical-line-chart.md +1 -1
- package/extended/examples/line-area/zoomable-value-axis.md +6 -6
- package/extended/examples/maps/animations-along-lines.md +34 -28
- package/extended/examples/maps/approximate-working-hours-map.md +9 -1
- package/extended/examples/maps/capitals-map.md +363 -911
- package/extended/examples/maps/changing-map-projection.md +7 -6
- package/extended/examples/maps/day-and-night-world-map.md +172 -532
- package/extended/examples/maps/drill-down-congressional-map.md +2 -2
- package/extended/examples/maps/drill-down-map.md +4 -4
- package/extended/examples/maps/drill-down-to-countries.md +6 -6
- package/extended/examples/maps/flight-routes-map.md +9 -1
- package/extended/examples/maps/grouped-countries-map.md +2 -3
- package/extended/examples/maps/location-sensitive-map.md +2 -1
- package/extended/examples/maps/map-bubbles.md +11 -3
- package/extended/examples/maps/map-dynamic-pie-charts.md +1 -1
- package/extended/examples/maps/map-image-drill-down.md +14 -15
- package/extended/examples/maps/map-sankey-series.md +22 -0
- package/extended/examples/maps/map-timeline.md +1 -1
- package/extended/examples/maps/map-using-d3-projections.md +1 -1
- package/extended/examples/maps/map-with-animated-bubbles.md +4 -2
- package/extended/examples/maps/map-with-animated-lines.md +38 -26
- package/extended/examples/maps/map-with-curved-lines.md +35 -25
- package/extended/examples/maps/map-with-patterns.md +9 -4
- package/extended/examples/maps/map-with-pulsating-bullets.md +9 -13
- package/extended/examples/maps/map-with-sized-pin-bullets.md +1 -1
- package/extended/examples/maps/multi-series-map.md +5 -4
- package/extended/examples/maps/pacific-centered-map.md +2 -1
- package/extended/examples/maps/rotate-globe-to-a-selected-country.md +200 -29
- package/extended/examples/maps/rotating-globe-with-circles.md +19 -2
- package/extended/examples/maps/rotating-globe.md +77 -20
- package/extended/examples/maps/selecting-multiple-areas-map.md +1 -1
- package/extended/examples/maps/solar-eclipse-map.md +12 -7
- package/extended/examples/maps/trumps-reciprocal-tariffs-map.md +1 -1
- package/extended/examples/maps/us-congressional-districts.md +19 -10
- package/extended/examples/maps/us-heat-map.md +1 -1
- package/extended/examples/maps/weather-map.md +1 -1
- package/extended/examples/maps/world-map-with-clustered-points.md +2 -1
- package/extended/examples/maps/world-time-zone-map.md +2 -1
- package/extended/examples/maps/zooming-to-countries-map.md +91 -15
- package/extended/examples/miscellaneous/annotating-charts.md +3 -3
- package/extended/examples/miscellaneous/changing-data-word-cloud.md +4 -2
- package/extended/examples/miscellaneous/combined-bullet-column-line-chart.md +1 -1
- package/extended/examples/miscellaneous/complex-venn-diagram.md +9 -22
- package/extended/examples/miscellaneous/exporting-chart-to-image.md +1 -1
- package/extended/examples/miscellaneous/forest-plot.md +5 -5
- package/extended/examples/miscellaneous/historical-population-pyramid.md +2 -4
- package/extended/examples/miscellaneous/honeycomb-tile-map.md +1 -1
- package/extended/examples/miscellaneous/horizontally-stacked-axes.md +1 -1
- package/extended/examples/miscellaneous/hybrid-drill-down-pie-bar-chart.md +4 -4
- package/extended/examples/miscellaneous/infographic.md +1 -1
- package/extended/examples/miscellaneous/mekko.md +1 -1
- package/extended/examples/miscellaneous/micro-charts-sparklines.md +1 -1
- package/extended/examples/miscellaneous/pictogram.md +3 -5
- package/extended/examples/miscellaneous/population-pyramid.md +1 -1
- package/extended/examples/miscellaneous/progress-chart.md +2 -2
- package/extended/examples/miscellaneous/range-bullet-chart.md +1 -1
- package/extended/examples/miscellaneous/sentence-cloud.md +10 -19
- package/extended/examples/miscellaneous/spectrum-chart.md +4 -4
- package/extended/examples/miscellaneous/strip-plot.md +1 -1
- package/extended/examples/miscellaneous/tag-cloud.md +5 -4
- package/extended/examples/miscellaneous/tile-map.md +1 -1
- package/extended/examples/miscellaneous/venn-diagram-with-patterns.md +8 -8
- package/extended/examples/miscellaneous/venn-diagram.md +8 -8
- package/extended/examples/miscellaneous/vertically-stacked-axes-chart.md +1 -1
- package/extended/examples/miscellaneous/violin-chart.md +1 -1
- package/extended/examples/miscellaneous/word-cloud.md +11 -10
- package/extended/examples/pie-donut/animated-time-line-pie-chart.md +1 -1
- package/extended/examples/pie-donut/donut-chart.md +1 -1
- package/extended/examples/pie-donut/donut-with-radial-gradient.md +2 -2
- package/extended/examples/pie-donut/dragging-pie-slices.md +1 -1
- package/extended/examples/pie-donut/grained-gradient-pie.md +1 -1
- package/extended/examples/pie-donut/nested-donut-chart.md +4 -4
- package/extended/examples/pie-donut/pie-chart-broken-slices.md +1 -1
- package/extended/examples/pie-donut/pie-chart-with-legend.md +1 -1
- package/extended/examples/pie-donut/pie-chart.md +3 -3
- package/extended/examples/pie-donut/pie-of-a-pie.md +1 -1
- package/extended/examples/pie-donut/semi-circle-pie-chart.md +1 -1
- package/extended/examples/pie-donut/simple-pie-chart.md +4 -3
- package/extended/examples/pie-donut/two-level-pie-chart.md +1 -1
- package/extended/examples/pie-donut/two-pie-charts-with-single-legend.md +1 -1
- package/extended/examples/pie-donut/variable-radius-nested-donut-chart.md +2 -3
- package/extended/examples/pie-donut/variable-radius-nested-pie.md +1 -1
- package/extended/examples/pie-donut/variable-radius-pie-chart.md +1 -1
- package/extended/examples/radar-polar/flower-chart.md +1 -1
- package/extended/examples/radar-polar/live-sorting-of-radar-columns.md +4 -11
- package/extended/examples/radar-polar/polar-area-chart.md +1 -1
- package/extended/examples/radar-polar/polar-chart.md +1 -1
- package/extended/examples/radar-polar/polar-scatter.md +1 -1
- package/extended/examples/radar-polar/radar-chart-visualizing-yearly-activities.md +3 -4
- package/extended/examples/radar-polar/radar-chart.md +1 -1
- package/extended/examples/radar-polar/radar-heat-map.md +1 -1
- package/extended/examples/radar-polar/radar-timeline.md +1 -1
- package/extended/examples/radar-polar/radar-with-date-axis.md +1 -1
- package/extended/examples/radar-polar/radial-bar-chart.md +1 -1
- package/extended/examples/radar-polar/radial-histogram.md +4 -12
- package/extended/examples/radar-polar/radial-line-graph.md +1 -1
- package/extended/examples/radar-polar/stacked-area-radar.md +2 -3
- package/extended/examples/radar-polar/variable-radius-radar.md +1 -1
- package/extended/examples/radar-polar/wheel-of-life.md +1 -1
- package/extended/examples/radar-polar/zoomable-radar.md +1 -1
- package/extended/examples/stock/changing-data-granularity.md +1 -1
- package/extended/examples/stock/live-stock-data.md +1 -1
- package/extended/examples/stock/separate-volume-panel.md +1 -1
- package/extended/examples/stock/stock-chart-comparing-prices.md +1 -1
- package/extended/examples/stock/stock-chart-with-bollinger-bands-indicator.md +1 -1
- package/extended/examples/stock/stock-chart-with-relative-strength-index.md +1 -1
- package/extended/examples/stock/stock-chart-with-volume-profile.md +1 -1
- package/extended/examples/stock/stock-chart.md +1 -1
- package/extended/examples/stock/stock-data-grouping.md +1 -1
- package/extended/examples/stock/stock-intraday-data.md +1 -1
- package/extended/examples/timeline/horizontal-serpentine-timeline.md +4 -6
- package/extended/examples/timeline/infinity-timeline.md +3 -3
- package/extended/examples/timeline/linear-process-diagram.md +1 -1
- package/extended/examples/timeline/serpentine-timeline-chart.md +4 -6
- package/extended/examples/timeline/spiral-timeline.md +3 -6
- package/extended/examples/timeline/stadium-track-chart.md +1 -1
- package/extended/examples/xy-bubble/animated-xy-bubble-timeline-chart.md +1 -1
- package/extended/examples/xy-bubble/beeswarm.md +1 -1
- package/extended/examples/xy-bubble/bubble-based-heat-map.md +4 -4
- package/extended/examples/xy-bubble/bubble-chart-with-pie-bullets.md +1 -1
- package/extended/examples/xy-bubble/bubble-chart.md +1 -1
- package/extended/examples/xy-bubble/irregular-interval-xy.md +1 -1
- package/extended/examples/xy-bubble/motion-chart.md +2 -5
- package/extended/examples/xy-bubble/scatter-chart.md +1 -1
- package/extended/examples/xy-bubble/scatter-plot-with-tens-of-thousands-points.md +7 -5
- package/extended/examples/xy-bubble/xy-chart-date-based-axis.md +1 -1
- package/extended/examples/xy-bubble/xy-chart-fills-axis.md +1 -1
- package/extended/examples/xy-bubble/xy-chart-value-based-line-graphs.md +1 -1
- package/extended/examples/xy-bubble/xy-error-chart.md +2 -5
- package/extended/examples/xy-bubble/zoomable-bubble-chart.md +2 -5
- package/extended/reference/animationoptions.md +1 -0
- package/extended/reference/chartserializer.md +10 -1
- package/extended/reference/entity.md +5 -2
- package/extended/reference/ibasecolumnseriesdataitem.md +1 -0
- package/extended/reference/ibasecolumnseriessettings.md +2 -0
- package/extended/reference/ichartserializersettings.md +13 -16
- package/extended/reference/ideclaredanimation.md +57 -0
- package/extended/reference/ieasinginfo.md +29 -0
- package/extended/reference/ientitysettings.md +5 -2
- package/extended/reference/imapchartsettings.md +2 -0
- package/extended/reference/imaplineseriesdataitem.md +1 -0
- package/extended/reference/imaplineseriessettings.md +2 -0
- package/extended/reference/imappointseriesdataitem.md +4 -2
- package/extended/reference/imappointseriessettings.md +7 -3
- package/extended/reference/iparsesettings.md +9 -3
- package/extended/reference/irootsettings.md +4 -0
- package/extended/reference/iscrollbarsettings.md +1 -0
- package/extended/reference/iserialchartcontainersettings.md +16 -0
- package/extended/reference/iserializersettings.md +2 -1
- package/extended/reference/iseriesdataitem.md +1 -0
- package/extended/reference/iseriessettings.md +2 -0
- package/extended/reference/mapchart.md +4 -0
- package/extended/reference/mappointseries.md +7 -3
- package/extended/reference/serialchart.md +1 -1
- package/extended/reference/serialchartcontainer.md +34 -0
- package/extended/reference/serializer.md +2 -1
- package/extended/reference/series.md +2 -0
- package/package.json +5 -2
- package/src/tools.js +73 -21
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Horizontal Partition Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/horizontal-partition-chart/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Horizontal Partition Chart displays hierarchical data in horizontally distributed levels. While not the most visually appealing, the chart gives a very clear view into the values comprising the higher levels.
|
|
@@ -27,7 +27,7 @@ root.setThemes([
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
// Create wrapper container
|
|
30
|
-
var
|
|
30
|
+
var chart = root.container.children.push(am5.SerialChartContainer.new(root, {
|
|
31
31
|
width: am5.percent(100),
|
|
32
32
|
height: am5.percent(100),
|
|
33
33
|
layout: root.verticalLayout
|
|
@@ -36,7 +36,7 @@ var container = root.container.children.push(am5.Container.new(root, {
|
|
|
36
36
|
|
|
37
37
|
// Create series
|
|
38
38
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
39
|
-
var series =
|
|
39
|
+
var series = chart.series.push(am5hierarchy.Partition.new(root, {
|
|
40
40
|
singleBranchOnly: false,
|
|
41
41
|
orientation: "horizontal",
|
|
42
42
|
downDepth: 1,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Zoomable Multilevel Tree Map"
|
|
3
3
|
source: "https://www.amcharts.com/demos/multilevel-tree-map/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
In a Tree Map the rectangle is divided into smaller rectangles with their size representing the value of each data item. Those smaller rectangles can in turn be divided into even smaller ones creating a sub-treemap.
|
|
@@ -45,22 +45,23 @@ root.setThemes([
|
|
|
45
45
|
myTheme
|
|
46
46
|
]);
|
|
47
47
|
|
|
48
|
-
var
|
|
49
|
-
am5.
|
|
48
|
+
var chart = root.container.children.push(
|
|
49
|
+
am5.SerialChartContainer.new(root, {
|
|
50
50
|
width: am5.p100,
|
|
51
|
-
height: am5.p100
|
|
52
|
-
wheelable: true,
|
|
53
|
-
pinchZoom: true
|
|
51
|
+
height: am5.p100
|
|
54
52
|
})
|
|
55
53
|
);
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
chart.zoomableContainer.setAll({
|
|
56
|
+
wheelable: true,
|
|
57
|
+
pinchZoom: true
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
var zoomTools = chart.set("zoomTools", am5.ZoomTools.new(root, {}));
|
|
60
61
|
|
|
61
62
|
// Create series
|
|
62
63
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
63
|
-
var series =
|
|
64
|
+
var series = chart.series.push(
|
|
64
65
|
am5hierarchy.Treemap.new(root, {
|
|
65
66
|
maskContent:false, //!important with zoomable containers
|
|
66
67
|
sort: "descending",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Packed Circle Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/packed-circle-chart/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Packed Circle Chart is great for visualizing hierarchical data. Circles on the bottom (leaf) level represent the values on that level and then they are packed (hence the name) into parent circles and determine their size. This way you can see a birds-eye view of the values in your data and also drill down for the details. Try clicking on the circles in the demo.
|
|
@@ -27,7 +27,7 @@ root.setThemes([
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
// Create wrapper container
|
|
30
|
-
var
|
|
30
|
+
var chart = root.container.children.push(am5.SerialChartContainer.new(root, {
|
|
31
31
|
width: am5.percent(100),
|
|
32
32
|
height: am5.percent(100),
|
|
33
33
|
layout: root.verticalLayout
|
|
@@ -36,7 +36,7 @@ var container = root.container.children.push(am5.Container.new(root, {
|
|
|
36
36
|
|
|
37
37
|
// Create series
|
|
38
38
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
39
|
-
var series =
|
|
39
|
+
var series = chart.series.push(am5hierarchy.Pack.new(root, {
|
|
40
40
|
singleBranchOnly: false,
|
|
41
41
|
downDepth: 1,
|
|
42
42
|
initialDepth: 10,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Rectangular Drill-down Voronoi Tree Map"
|
|
3
3
|
source: "https://www.amcharts.com/demos/rectangular-voronoi-tree-map/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
A weighted Voronoi treemap is a specialized data visualization technique that combines the concepts of Voronoi diagrams and treemaps. It partitions a given space into regions based on a set of weighted data points. Each region represents a data item or category, and its size is proportional to the weight associated with that item. By using Voronoi tessellation, which ensures that each data point is associated with the nearest region, weighted Voronoi treemaps offer an effective way to visually represent hierarchical and weighted data structures. These treemaps are particularly useful in areas such as financial analysis, resource allocation, and data visualization, where both hierarchy and weight are important factors to consider.
|
|
@@ -1242,7 +1242,9 @@ am5.array.each(data.children, function (continent) {
|
|
|
1242
1242
|
|
|
1243
1243
|
// Create series
|
|
1244
1244
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
1245
|
-
var
|
|
1245
|
+
var chart = root.container.children.push(am5.SerialChartContainer.new(root, {}));
|
|
1246
|
+
|
|
1247
|
+
var series = chart.series.push(am5hierarchy.VoronoiTreemap.new(root, {
|
|
1246
1248
|
singleBranchOnly: true,
|
|
1247
1249
|
downDepth: 2,
|
|
1248
1250
|
upDepth: 0,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Simple Treemap"
|
|
3
3
|
source: "https://www.amcharts.com/demos/simple-treemap/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Simple Treemap displays hierarchical data in the shape of rectangles proportional in size to their value as part of the whole. Each rectangle, in turn, can be divided into sub-items according to the values of its children in the hierarchy.
|
|
@@ -23,8 +23,8 @@ root.setThemes([
|
|
|
23
23
|
]);
|
|
24
24
|
|
|
25
25
|
// Create wrapper container
|
|
26
|
-
var
|
|
27
|
-
am5.
|
|
26
|
+
var chart = root.container.children.push(
|
|
27
|
+
am5.SerialChartContainer.new(root, {
|
|
28
28
|
width: am5.percent(100),
|
|
29
29
|
height: am5.percent(100),
|
|
30
30
|
layout: root.verticalLayout
|
|
@@ -33,7 +33,7 @@ var container = root.container.children.push(
|
|
|
33
33
|
|
|
34
34
|
// Create series
|
|
35
35
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
36
|
-
var series =
|
|
36
|
+
var series = chart.series.push(
|
|
37
37
|
am5hierarchy.Treemap.new(root, {
|
|
38
38
|
singleBranchOnly: false,
|
|
39
39
|
downDepth: 1,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Single-Level Packed Circles"
|
|
3
3
|
source: "https://www.amcharts.com/demos/single-level-packed-circles/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
This demo shows a packed circle chart as a visual representation of single-level data, where each circle corresponds to a distinct category, and the size of each circle reflects the quantitative value associated with that category. This chart allows for a clear and compact presentation of data distribution, making it easy to compare the relative magnitudes of individual data points within a single level.
|
|
@@ -28,22 +28,23 @@ root.setThemes([
|
|
|
28
28
|
]);
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
32
|
-
am5.
|
|
31
|
+
var chart = root.container.children.push(
|
|
32
|
+
am5.SerialChartContainer.new(root, {
|
|
33
33
|
width: am5.p100,
|
|
34
|
-
height: am5.p100
|
|
35
|
-
wheelable: true,
|
|
36
|
-
pinchZoom: true
|
|
34
|
+
height: am5.p100
|
|
37
35
|
})
|
|
38
36
|
);
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
chart.zoomableContainer.setAll({
|
|
39
|
+
wheelable: true,
|
|
40
|
+
pinchZoom: true
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var zoomTools = chart.set("zoomTools", am5.ZoomTools.new(root, {}));
|
|
43
44
|
|
|
44
45
|
// Create series
|
|
45
46
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
46
|
-
var series =
|
|
47
|
+
var series = chart.series.push(am5hierarchy.Pack.new(root, {
|
|
47
48
|
maskContent:false, //!important with zoomable containers
|
|
48
49
|
topDepth: 1,
|
|
49
50
|
valueField: "value",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Sunburst Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/sunburst-chart/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Sunburst Chart or Diagram represents hierarchical relational data in a circular chart. It looks similar to nested donut charts, however, the hierarchical nature of the Sunburst means that each level represents detalization of the previous one. In other words, children slices on each level comprise the whole of the parent slice.
|
|
@@ -25,7 +25,7 @@ root.setThemes([
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
// Create wrapper container
|
|
28
|
-
var
|
|
28
|
+
var chart = root.container.children.push(am5.SerialChartContainer.new(root, {
|
|
29
29
|
width: am5.percent(100),
|
|
30
30
|
height: am5.percent(100),
|
|
31
31
|
layout: root.verticalLayout
|
|
@@ -34,7 +34,7 @@ var container = root.container.children.push(am5.Container.new(root, {
|
|
|
34
34
|
|
|
35
35
|
// Create series
|
|
36
36
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
37
|
-
var series =
|
|
37
|
+
var series = chart.series.push(am5hierarchy.Sunburst.new(root, {
|
|
38
38
|
singleBranchOnly: true,
|
|
39
39
|
downDepth: 10,
|
|
40
40
|
initialDepth: 10,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
title: "Sunburst Flavor Wheel"
|
|
3
3
|
source: "https://www.amcharts.com/demos/sunburst-flavor-wheel/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
The demo shows off two-level Sunburst chart. The data uses all same values because the purpose of this chart is displaying hierarchy of types rather than their quantitative distribution.
|
|
9
9
|
We also are using "template fields" technique to assign individual color to each chart via data.
|
|
10
10
|
This chart is added to a Zoomable Container, so you can pan, zoom-in and zoom-out this chart using mouse wheel, pinch-zoom or zoom tools on the bottom-right.
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Sunburst
|
|
12
|
+
Template fields
|
|
13
13
|
|
|
14
14
|
## JavaScript
|
|
15
15
|
|
|
@@ -32,24 +32,23 @@ root.setThemes([
|
|
|
32
32
|
]);
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
36
|
-
am5.
|
|
35
|
+
var chart = root.container.children.push(
|
|
36
|
+
am5.SerialChartContainer.new(root, {
|
|
37
37
|
width: am5.p100,
|
|
38
|
-
height: am5.p100
|
|
39
|
-
wheelable: true,
|
|
40
|
-
pinchZoom: true
|
|
38
|
+
height: am5.p100
|
|
41
39
|
})
|
|
42
40
|
);
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
chart.zoomableContainer.setAll({
|
|
43
|
+
wheelable: true,
|
|
44
|
+
pinchZoom: true
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
var zoomTools = chart.set("zoomTools", am5.ZoomTools.new(root, {}));
|
|
47
48
|
|
|
48
49
|
// Add title
|
|
49
|
-
var title =
|
|
50
|
-
text: "COFFEE
|
|
51
|
-
[#63bdc5]AROMA[/]
|
|
52
|
-
[#63bdc5]WHEEL[/]",
|
|
50
|
+
var title = chart.zoomableContainer.contents.children.push(am5.Label.new(root, {
|
|
51
|
+
text: "COFFEE\n[#63bdc5]AROMA[/]\n[#63bdc5]WHEEL[/]",
|
|
53
52
|
textAlign: "center",
|
|
54
53
|
x: am5.p50,
|
|
55
54
|
y: am5.p50,
|
|
@@ -60,9 +59,8 @@ var title = container.contents.children.push(am5.Label.new(root, {
|
|
|
60
59
|
fill: am5.color(0x385d63)
|
|
61
60
|
}));
|
|
62
61
|
|
|
63
|
-
var credits =
|
|
64
|
-
text: "Inspired by
|
|
65
|
-
[bold]CoffeeMind",
|
|
62
|
+
var credits = chart.children.push(am5.Label.new(root, {
|
|
63
|
+
text: "Inspired by\n[bold]CoffeeMind",
|
|
66
64
|
x: am5.p100,
|
|
67
65
|
y: 0,
|
|
68
66
|
centerX: am5.p100,
|
|
@@ -83,7 +81,7 @@ credits.events.on("click", function() {
|
|
|
83
81
|
|
|
84
82
|
// Create series
|
|
85
83
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
86
|
-
var series =
|
|
84
|
+
var series = chart.series.push(am5hierarchy.Sunburst.new(root, {
|
|
87
85
|
singleBranchOnly: true,
|
|
88
86
|
downDepth: 2,
|
|
89
87
|
initialDepth: 2,
|
|
@@ -257,8 +255,7 @@ var data = [{
|
|
|
257
255
|
}, {
|
|
258
256
|
value: 0.1, nodeSettings: { fill: am5.color(0xffffff) }
|
|
259
257
|
}, {
|
|
260
|
-
name: "Herb
|
|
261
|
-
vegetal",
|
|
258
|
+
name: "Herb/\nvegetal",
|
|
262
259
|
nodeSettings: { fill: am5.color(0x598264) },
|
|
263
260
|
children: [
|
|
264
261
|
{ name: "Thyme", nodeSettings: { fill: am5.color(0x6c8067) }, value: 1 },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Tree Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/tree-chart/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Tree Chart is the simplest form of a hierarchy chart, conceptually speaking. It displays child nodes under the parent nodes with same-level children placed on the same level visually. amCharts Tree Chart enables collapsing of the branches (try clicking on a node with children) and auto-calculation of values based on the children values.
|
|
@@ -28,22 +28,23 @@ root.setThemes([
|
|
|
28
28
|
]);
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
32
|
-
am5.
|
|
31
|
+
var chart = root.container.children.push(
|
|
32
|
+
am5.SerialChartContainer.new(root, {
|
|
33
33
|
width: am5.p100,
|
|
34
|
-
height: am5.p100
|
|
35
|
-
wheelable: true,
|
|
36
|
-
pinchZoom: true
|
|
34
|
+
height: am5.p100
|
|
37
35
|
})
|
|
38
36
|
);
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
chart.zoomableContainer.setAll({
|
|
39
|
+
wheelable: true,
|
|
40
|
+
pinchZoom: true
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var zoomTools = chart.set("zoomTools", am5.ZoomTools.new(root, {}));
|
|
43
44
|
|
|
44
45
|
// Create series
|
|
45
46
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
46
|
-
var series =
|
|
47
|
+
var series = chart.series.push(am5hierarchy.Tree.new(root, {
|
|
47
48
|
singleBranchOnly: false,
|
|
48
49
|
downDepth: 1,
|
|
49
50
|
initialDepth: 10,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Vertical Partition Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/vertical-partition-chart/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Vertical Partition Chart displays hierarchical data in vertically distributed levels. While not the most visually appealing, the chart gives a very clear view into the values comprising the higher levels.
|
|
@@ -27,7 +27,7 @@ root.setThemes([
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
// Create wrapper container
|
|
30
|
-
var
|
|
30
|
+
var chart = root.container.children.push(am5.SerialChartContainer.new(root, {
|
|
31
31
|
width: am5.percent(100),
|
|
32
32
|
height: am5.percent(100),
|
|
33
33
|
layout: root.verticalLayout
|
|
@@ -36,7 +36,7 @@ var container = root.container.children.push(am5.Container.new(root, {
|
|
|
36
36
|
|
|
37
37
|
// Create series
|
|
38
38
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
39
|
-
var series =
|
|
39
|
+
var series = chart.series.push(am5hierarchy.Partition.new(root, {
|
|
40
40
|
singleBranchOnly: false,
|
|
41
41
|
orientation: "vertical",
|
|
42
42
|
downDepth: 1,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Drill-down, zoomable Voronoi Treemap"
|
|
3
3
|
source: "https://www.amcharts.com/demos/voronoi-treemap/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Voronoi treemaps (diagrams) are a data visualization technique that combines the concepts of Voronoi diagrams and treemaps to represent hierarchical data. In a Voronoi treemap, the available space is divided into cells based on the Voronoi diagram, where each cell represents a portion of the data. The hierarchical structure is encoded by nesting cells within each other, with larger cells containing smaller cells. The size of each cell corresponds to a quantitative value associated with the data element it represents. By employing this approach, Voronoi treemaps offer a visually appealing and space-filling representation of hierarchical data, allowing users to explore the data's structure and proportions in a hierarchical context.
|
|
@@ -1241,23 +1241,24 @@ am5.array.each(data.children, function (continent) {
|
|
|
1241
1241
|
});
|
|
1242
1242
|
|
|
1243
1243
|
|
|
1244
|
-
var
|
|
1245
|
-
am5.
|
|
1244
|
+
var chart = root.container.children.push(
|
|
1245
|
+
am5.SerialChartContainer.new(root, {
|
|
1246
1246
|
width: am5.p100,
|
|
1247
|
-
height: am5.p100
|
|
1248
|
-
wheelable: true,
|
|
1249
|
-
pinchZoom: true
|
|
1247
|
+
height: am5.p100
|
|
1250
1248
|
})
|
|
1251
1249
|
);
|
|
1252
1250
|
|
|
1251
|
+
chart.zoomableContainer.setAll({
|
|
1252
|
+
wheelable: true,
|
|
1253
|
+
pinchZoom: true
|
|
1254
|
+
});
|
|
1253
1255
|
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
}));
|
|
1256
|
+
|
|
1257
|
+
var zoomTools = chart.set("zoomTools", am5.ZoomTools.new(root, {}));
|
|
1257
1258
|
|
|
1258
1259
|
// Create series
|
|
1259
1260
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
1260
|
-
var series =
|
|
1261
|
+
var series = chart.series.push(am5hierarchy.VoronoiTreemap.new(root, {
|
|
1261
1262
|
paddingLeft: 5,
|
|
1262
1263
|
paddingRight: 5,
|
|
1263
1264
|
paddingTop: 5,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Zoomable Force Directed Tree"
|
|
3
3
|
source: "https://www.amcharts.com/demos/zoomable-force-directed-tree/"
|
|
4
4
|
category: "hierarchy"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
This chart is added to a Zoomable Container, so you can pan, zoom-in and zoom-out this chart using mouse wheel, pinch-zoom or zoom tools on the bottom-right.
|
|
@@ -491,22 +491,23 @@ var data = {
|
|
|
491
491
|
]
|
|
492
492
|
};
|
|
493
493
|
|
|
494
|
-
var
|
|
495
|
-
am5.
|
|
494
|
+
var chart = root.container.children.push(
|
|
495
|
+
am5.SerialChartContainer.new(root, {
|
|
496
496
|
width: am5.p100,
|
|
497
|
-
height: am5.p100
|
|
498
|
-
wheelable: true,
|
|
499
|
-
pinchZoom: true
|
|
497
|
+
height: am5.p100
|
|
500
498
|
})
|
|
501
499
|
);
|
|
502
500
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
501
|
+
chart.zoomableContainer.setAll({
|
|
502
|
+
wheelable: true,
|
|
503
|
+
pinchZoom: true
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
var zoomTools = chart.set("zoomTools", am5.ZoomTools.new(root, {}));
|
|
506
507
|
|
|
507
508
|
// Create series
|
|
508
509
|
// https://www.amcharts.com/docs/v5/charts/hierarchy/#Adding
|
|
509
|
-
var series =
|
|
510
|
+
var series = chart.series.push(am5hierarchy.ForceDirected.new(root, {
|
|
510
511
|
maskContent:false, //!important with zoomable containers
|
|
511
512
|
singleBranchOnly: false,
|
|
512
513
|
downDepth: 2,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
title: "100% Stacked Area Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/100-stacked-area-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Using calculated values for series
|
|
9
9
|
In amCharts 6, Series can be drawn from a variety of auto-calculated values, not necessarily the absolute ones.
|
|
10
|
-
In this case, we are setting valueYShow
|
|
10
|
+
In this case, we are setting valueYShow data field to "valueYTotalPercent" which is an auto-calculated value, producing a 100% stack chart.
|
|
11
11
|
XY chart
|
|
12
12
|
Line series
|
|
13
13
|
XY chart series: 100% stacks
|
|
@@ -185,8 +185,7 @@ function createSeries(name, field) {
|
|
|
185
185
|
legendValueText: "{valueY}",
|
|
186
186
|
tooltip: am5.Tooltip.new(root, {
|
|
187
187
|
pointerOrientation: "horizontal",
|
|
188
|
-
labelText: "[bold]{name}[/]
|
|
189
|
-
{categoryX}: {valueYTotalPercent.formatNumber('#.0')}% ({valueY})"
|
|
188
|
+
labelText: "[bold]{name}[/]\n{categoryX}: {valueYTotalPercent.formatNumber('#.0')}% ({valueY})"
|
|
190
189
|
})
|
|
191
190
|
}));
|
|
192
191
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Animated Bullet at the End of the Series"
|
|
3
3
|
source: "https://www.amcharts.com/demos/animated-bullet-at-the-end-of-the-series/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Displaying a pulsating element at a data point on a chart is a great way to attract viewer's attention. This demo shows you how to do it with amCharts.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Area with Time Based Data"
|
|
3
3
|
source: "https://www.amcharts.com/demos/area-with-time-based-data/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
This demo shows you how to create a time-based area chart with amCharts 5.
|
|
@@ -88,8 +88,7 @@ var series = chart.series.push(am5xy.LineSeries.new(root, {
|
|
|
88
88
|
valueXField: "date",
|
|
89
89
|
tooltip: am5.Tooltip.new(root, {
|
|
90
90
|
pointerOrientation: "horizontal",
|
|
91
|
-
labelText: "[bold]{name}[/]
|
|
92
|
-
{valueX.formatDate()}: {valueY}"
|
|
91
|
+
labelText: "[bold]{name}[/]\n{valueX.formatDate()}: {valueY}"
|
|
93
92
|
})
|
|
94
93
|
}));
|
|
95
94
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
title: "Chart with Gaps in Data"
|
|
3
3
|
source: "https://www.amcharts.com/demos/chart-with-gaps-in-data/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Breaking the line
|
|
9
|
-
If your data contains gaps - data points without values - you can easily make the chart display a gap as well. Just set its connect = false
|
|
9
|
+
If your data contains gaps - data points without values - you can easily make the chart display a gap as well. Just set its connect = false setting.
|
|
10
10
|
[More about line series with gaps](https://www.amcharts.com/docs/v5/charts/xy-chart/series/line-series/#Gaps)
|
|
11
11
|
Defining value ranges
|
|
12
12
|
You can apply different colors and other visual properties to the segments of series that fall within certain range of values. For that you can use "axis ranges".
|
|
@@ -15,7 +15,6 @@ You can apply different colors and other visual properties to the segments of se
|
|
|
15
15
|
## JavaScript
|
|
16
16
|
|
|
17
17
|
```javascript
|
|
18
|
-
|
|
19
18
|
// Create root element
|
|
20
19
|
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
|
|
21
20
|
var root = am5.Root.new("chartdiv");
|
package/extended/examples/line-area/comparing-different-date-values-google-analytics-style.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Comparing Different Date Values Google Analytics Style"
|
|
3
3
|
source: "https://www.amcharts.com/demos/comparing-different-date-values-google-analytics-style/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Google popularized this type of chart where data from one period is compared to the same data in the previous period in it's Analytics product. In this demo we implement this concept with amCharts.
|
|
@@ -73,8 +73,7 @@ var series = chart.series.push(am5xy.LineSeries.new(root, {
|
|
|
73
73
|
valueYField: "value1",
|
|
74
74
|
valueXField: "date",
|
|
75
75
|
tooltip: am5.Tooltip.new(root, {
|
|
76
|
-
labelText: "{valueX}: {valueY}
|
|
77
|
-
{previousDate}: {value2}"
|
|
76
|
+
labelText: "{valueX}: {valueY}\n{previousDate}: {value2}"
|
|
78
77
|
})
|
|
79
78
|
}));
|
|
80
79
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Data Grouping 50K Points"
|
|
3
3
|
source: "https://www.amcharts.com/demos/data-grouping-50k-points/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
This demo shows how dynamic data item grouping - a feature built-in into amCharts 5 - can help coping with large data sets.
|
|
@@ -14,7 +14,6 @@ And, best of all, you're in control when specifying how aggregate values are cal
|
|
|
14
14
|
## JavaScript
|
|
15
15
|
|
|
16
16
|
```javascript
|
|
17
|
-
|
|
18
17
|
// Create root element
|
|
19
18
|
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
|
|
20
19
|
var root = am5.Root.new("chartdiv");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Date axis with labels near minor grid lines"
|
|
3
3
|
source: "https://www.amcharts.com/demos/date-axis-with-labels-near-minor-grid-lines/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Using minor grid lines enables decluttering the plot container, while still maintaining clear perception of axis scale as well as its relation to the series.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Date Based Data"
|
|
3
3
|
source: "https://www.amcharts.com/demos/date-based-data/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
The most common type of chart is some column or line chart where the Y axis represents numeric values and the X axis is some sequence of discreet values (often referred to as "categories"). The categories can also be some string representations of dates but they are actually just plain strings as far as the chart's smarts are concerned. A proper way to display date-based data is using a date-aware X axis which can handle displaying different labels (days, months, years) based on the amount of data, zoom level, etc., as well as handle different data granularity (eg. no data on some days). All of this is handled automatically by amCharts XY chart.
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
title: "Line with Different Negative Color"
|
|
3
3
|
source: "https://www.amcharts.com/demos/date-based-line-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
Axis ranges
|
|
9
|
-
Axis ranges allow defining a scope of values, or a stretch between categories, or dates. Any property of the segment of the series that falls into that range can be overridden.
|
|
10
|
-
This demo shows how we can color any segment of the line below the zero line with an alternative color.
|
|
8
|
+
Axis ranges
|
|
9
|
+
Axis ranges allow defining a scope of values, or a stretch between categories, or dates. Any property of the segment of the series that falls into that range can be overridden.
|
|
10
|
+
This demo shows how we can color any segment of the line below the zero line with an alternative color.
|
|
11
11
|
[More about using axis ranges with series](https://www.amcharts.com/docs/v5/charts/xy-chart/axes/axis-ranges/)
|
|
12
12
|
|
|
13
13
|
## JavaScript
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Divergent Lines"
|
|
3
3
|
source: "https://www.amcharts.com/demos/divergent-lines/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
This demo shows how an XYChart can combine several smoothed LineSeries to depict projections using divergent lines. Divergent lines refer to a set of lines that originate from a common point and gradually spread or move apart from each other as they extend further. These lines exhibit a diverging pattern, creating increasing space or distance between them.
|
|
@@ -131,8 +131,7 @@ function createSeries(field, name, color, dashed) {
|
|
|
131
131
|
tooltip: am5.Tooltip.new(root, {
|
|
132
132
|
pointerOrientation: "horizontal",
|
|
133
133
|
getFillFromSprite: false,
|
|
134
|
-
labelText: "[bold]{name}[/]
|
|
135
|
-
{valueX}: [bold]{valueY}[/]"
|
|
134
|
+
labelText: "[bold]{name}[/]\n{valueX}: [bold]{valueY}[/]"
|
|
136
135
|
})
|
|
137
136
|
}));
|
|
138
137
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Draggable Range with a Close Button"
|
|
3
3
|
source: "https://www.amcharts.com/demos/draggable-range-with-close-button/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
A very common use-case with line and area charts is having some sort of visual indicator to be able to easily see parts of the series going over (or below) some specific value. It is very easy to implement with amCharts' axis range feature. But we can go one step further and allow the viewer to adjust the indicator value. Try dragging the "Stop loss" indicator box up and down.
|