@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: "Drawing Chart Series with Mouse or Touch"
|
|
3
3
|
source: "https://www.amcharts.com/demos/drawing-chart-series-with-mouse-or-touch/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Your charts don't have to be limited to passively displaying data. You can use amCharts as an interactive chart creation surface and enable your users to visually draw new charts. Click anywhere on plot area to draw the new series, drag bullets to adjust positions.
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
title: "Duration on Value Axis"
|
|
3
3
|
source: "https://www.amcharts.com/demos/duration-on-value-axis/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
This demo showcases several powerful concepts. Let's take a look.
|
|
9
|
-
Duration axis
|
|
10
|
-
There's a special type of axis that can reformat the values into any kind of "duration". The units and formats are fully configurable.
|
|
11
|
-
[More info about Duration axis](https://www.amcharts.com/docs/v5/charts/xy-chart/axes/duration-axis/)
|
|
12
|
-
Binding properties of chart elements to data
|
|
13
|
-
Size of the bullets on the "Latitude" series is bound to a data, using its "template fields". This is a very powerful concept, which allows binding any setting of any object to a value in data.
|
|
14
|
-
In this case we bind radius of the circle bullet to the townSize field in data.
|
|
8
|
+
This demo showcases several powerful concepts. Let's take a look.
|
|
9
|
+
Duration axis
|
|
10
|
+
There's a special type of axis that can reformat the values into any kind of "duration". The units and formats are fully configurable.
|
|
11
|
+
[More info about Duration axis](https://www.amcharts.com/docs/v5/charts/xy-chart/axes/duration-axis/)
|
|
12
|
+
Binding properties of chart elements to data
|
|
13
|
+
Size of the bullets on the "Latitude" series is bound to a data, using its "template fields". This is a very powerful concept, which allows binding any setting of any object to a value in data.
|
|
14
|
+
In this case we bind radius of the circle bullet to the townSize field in data.
|
|
15
15
|
[More info about template fields](https://www.amcharts.com/docs/v5/concepts/settings/template-fields/)
|
|
16
16
|
|
|
17
17
|
## JavaScript
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Error Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/error-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Error chart helps you visualize uncertainty or variability of data. This demo shows you how to create error bars on top of a regular line graph.
|
|
@@ -117,8 +117,7 @@ var series = chart.series.push(
|
|
|
117
117
|
valueYField: "visits",
|
|
118
118
|
categoryXField: "country",
|
|
119
119
|
tooltip: am5.Tooltip.new(root, {
|
|
120
|
-
labelText: "value: {valueY}
|
|
121
|
-
error: {error}"
|
|
120
|
+
labelText: "value: {valueY}\nerror: {error}"
|
|
122
121
|
})
|
|
123
122
|
})
|
|
124
123
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Evenly Spaced Date Axis"
|
|
3
3
|
source: "https://www.amcharts.com/demos/evenly-spaced-date-axis/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Note: this demo uses CategoryDateAxis which is now deprecated in favor of more advanced GaplessDateAxis. Checkout the No-gap Date Axis demo to see GaplessDateAxis in action.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Highlighting Line Chart Series on Legend Hover"
|
|
3
3
|
source: "https://www.amcharts.com/demos/highlighting-line-chart-series-on-legend-hover/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Charts with multiple series are great to get a high-level view of data but could be hard to read when you want to focus on data in one series. Selecting the series in the legend and highlighting its respective graph is a perfect way to solve this issue.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line Chart Adding Data Every Second"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-chart-adding-data-every-second/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Displaying charts for live data is a common task these days and amCharts is here to help you do it in style.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line Chart with Horizontal Target"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-chart-with-horizontal-target/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
It is very common to have a target value line on a chart and it is also common to display the parts of the chart that fall below and above that target line differently. Achieving this effect is very easy with amCharts.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line Chart with Range Slider"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-chart-with-range-slider/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Displaying parts of the chart differently is a powerful visual aid helping users comprehend the data better. Add an interactive element adjusting the point dividing the parts and you get a powerful analytical tool.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line Chart with Scroll and Zoom"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-chart-with-scroll-and-zoom/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Having the whole chart overview while zooming into parts of it and panning around is a powerful user experience aid. amCharts comes with advanced scrollbars to make this functionality a breeze to impelemnt.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line with Different Colors for Ups and Downs"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-different-colors-ups-downs/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Sometimes it's great to emphasize the trend in data by coloring the line according to the direction of value changes.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line Graph"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-graph/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Line graph (also known as Line chart) displays series of data points connected by straight line segments. Line graphs are often used to display time series chronologically with category axis (usually horizontal x-axis) serving as an evenly spaced date-time scale.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line with Custom Bullets"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-with-custom-bullets/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Anything can be a bullet
|
|
@@ -53,39 +53,48 @@ var colorSet = am5.ColorSet.new(root, {});
|
|
|
53
53
|
var data = [
|
|
54
54
|
{
|
|
55
55
|
date: "2021-12-31 18:00",
|
|
56
|
-
value: 0
|
|
56
|
+
value: 0,
|
|
57
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline0.svg" }
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
60
|
date: "2021-12-31 19:00",
|
|
60
|
-
value: 0
|
|
61
|
+
value: 0,
|
|
62
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline1.svg" }
|
|
61
63
|
},
|
|
62
64
|
{
|
|
63
65
|
date: "2021-12-31 20:00",
|
|
64
|
-
value: 0
|
|
66
|
+
value: 0,
|
|
67
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline2.svg" }
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
date: "2021-12-31 21:00",
|
|
68
|
-
value: 0.3
|
|
71
|
+
value: 0.3,
|
|
72
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline3.svg" }
|
|
69
73
|
},
|
|
70
74
|
{
|
|
71
75
|
date: "2021-12-31 22:00",
|
|
72
|
-
value: 0.8
|
|
76
|
+
value: 0.8,
|
|
77
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline4.svg" }
|
|
73
78
|
},
|
|
74
79
|
{
|
|
75
80
|
date: "2021-12-31 23:00",
|
|
76
|
-
value: 1.2
|
|
81
|
+
value: 1.2,
|
|
82
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline5.svg" }
|
|
77
83
|
},
|
|
78
84
|
{
|
|
79
85
|
date: "2022-01-01 00:00",
|
|
80
|
-
value: 2.2
|
|
86
|
+
value: 2.2,
|
|
87
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline6.svg" }
|
|
81
88
|
},
|
|
82
89
|
{
|
|
83
90
|
date: "2022-01-01 01:00",
|
|
84
|
-
value: 2.5
|
|
91
|
+
value: 2.5,
|
|
92
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline7.svg" }
|
|
85
93
|
},
|
|
86
94
|
{
|
|
87
95
|
date: "2022-01-01 02:00",
|
|
88
|
-
value: 2.2
|
|
96
|
+
value: 2.2,
|
|
97
|
+
iconSettings: { src: "https://amcharts.com/wp-content/uploads/assets/timeline/timeline0.svg" }
|
|
89
98
|
}
|
|
90
99
|
];
|
|
91
100
|
|
|
@@ -146,14 +155,8 @@ series.data.processor = am5.DataProcessor.new(root, {
|
|
|
146
155
|
series.strokes.template.setAll({ strokeDasharray: [3, 3], strokeWidth: 2 });
|
|
147
156
|
|
|
148
157
|
|
|
149
|
-
|
|
158
|
+
// Each bullet takes its icon from the data item's "iconSettings"
|
|
150
159
|
series.bullets.push(function () {
|
|
151
|
-
i++;
|
|
152
|
-
|
|
153
|
-
if (i > 7) {
|
|
154
|
-
i = 0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
160
|
var container = am5.Container.new(root, {
|
|
158
161
|
centerX: am5.p50,
|
|
159
162
|
centerY: am5.p50
|
|
@@ -169,7 +172,7 @@ series.bullets.push(function () {
|
|
|
169
172
|
centerY: am5.p50,
|
|
170
173
|
width: 23,
|
|
171
174
|
height: 23,
|
|
172
|
-
|
|
175
|
+
templateField: "iconSettings"
|
|
173
176
|
})
|
|
174
177
|
);
|
|
175
178
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Line with Data Labels"
|
|
3
3
|
source: "https://www.amcharts.com/demos/line-with-data-labels/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Line series in amCharts can have labels displayed near data points, the same as any other series type. Labels are added in the same way as regular bullets, by attaching them to individual data points. You can customize the appearance and position of the labels, including their font, size, color, and alignment. Additionally, you can add a background, border, or padding to make the labels stand out. This allows you to effectively highlight values or provide additional context directly on the chart.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Live Data"
|
|
3
3
|
source: "https://www.amcharts.com/demos/live-data/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Displaying pre-defined data in the most beautiful and readable way is great but amCharts lets you visualize live constantly updating data just as well.
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
2
|
+
title: "Crypto Order Book Depth Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/live-order-book-depth-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
This demo shows how you can implement a simple "Order Book" chart using our XYChart. The chart shows a real distribution of booked sell and buy orders for bitcoin and their volume.
|
|
8
|
+
This order book depth chart (market depth chart) is built in JavaScript with a standard amCharts 5 XYChart. It plots cumulative bids and asks as step lines, with the volume at each price level as columns, using live order book data for the ETH/BTC pair (Ether priced in bitcoin).
|
|
10
9
|
Live data loading and processing
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
[More about loading external data](https://www.amcharts.com/docs/v5/concepts/data/#External_data)
|
|
10
|
+
The chart uses amCharts 5 built-in external data loading (am5.net.load()) to fetch the top 50 bids and asks from the public Binance market data API. The endpoint allows cross-origin requests and needs no API key, so the data loads directly in the browser.
|
|
11
|
+
Each price/volume pair is sorted and accumulated into running totals before it is set as chart data. The order book reloads every 30 seconds; if a request fails, the demo falls back to a built-in sample order book.
|
|
12
|
+
More about loading external data
|
|
15
13
|
|
|
16
14
|
## JavaScript
|
|
17
15
|
|
|
@@ -84,9 +82,7 @@ var bidsTotalVolume = chart.series.push(am5xy.StepLineSeries.new(root, {
|
|
|
84
82
|
fill: am5.color(0x00ff00),
|
|
85
83
|
tooltip: am5.Tooltip.new(root, {
|
|
86
84
|
pointerOrientation: "horizontal",
|
|
87
|
-
labelText: "[width: 120px]Ask:[/][bold]{categoryX}[/]
|
|
88
|
-
[width: 120px]Total volume:[/][bold]{valueY}[/]
|
|
89
|
-
[width: 120px]Volume:[/][bold]{bidsvolume}[/]"
|
|
85
|
+
labelText: "[width: 120px]Ask:[/][bold]{categoryX}[/]\n[width: 120px]Total volume:[/][bold]{valueY}[/]\n[width: 120px]Volume:[/][bold]{bidsvolume}[/]"
|
|
90
86
|
})
|
|
91
87
|
}));
|
|
92
88
|
bidsTotalVolume.strokes.template.set("strokeWidth", 2)
|
|
@@ -105,9 +101,7 @@ var asksTotalVolume = chart.series.push(am5xy.StepLineSeries.new(root, {
|
|
|
105
101
|
fill: am5.color(0xff0000),
|
|
106
102
|
tooltip: am5.Tooltip.new(root, {
|
|
107
103
|
pointerOrientation: "horizontal",
|
|
108
|
-
labelText: "[width: 120px]Ask:[/][bold]{categoryX}[/]
|
|
109
|
-
[width: 120px]Total volume:[/][bold]{valueY}[/]
|
|
110
|
-
[width: 120px]Volume:[/][bold]{asksvolume}[/]"
|
|
104
|
+
labelText: "[width: 120px]Ask:[/][bold]{categoryX}[/]\n[width: 120px]Total volume:[/][bold]{valueY}[/]\n[width: 120px]Volume:[/][bold]{asksvolume}[/]"
|
|
111
105
|
})
|
|
112
106
|
}));
|
|
113
107
|
asksTotalVolume.strokes.template.set("strokeWidth", 2)
|
|
@@ -145,7 +139,7 @@ cursor.lineY.set("visible", false);
|
|
|
145
139
|
|
|
146
140
|
// Data loader
|
|
147
141
|
function loadData() {
|
|
148
|
-
am5.net.load("https://
|
|
142
|
+
am5.net.load("https://data-api.binance.vision/api/v3/depth?symbol=ETHBTC&limit=50").then(function(result) {
|
|
149
143
|
var data = am5.JSONParser.parse(result.response);
|
|
150
144
|
parseData(data);
|
|
151
145
|
}).catch(function() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Logarithmic Scale"
|
|
3
3
|
source: "https://www.amcharts.com/demos/logarithmic-scale/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Displaying wide-ranging values on a regular (linear) scale makes charts unreadable. Switch your value axis to logarithmic scale and get back to highly useful data visualizations.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Mixed Daily and Intra-Day Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/mixed-daily-and-intra-day-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Displaying both daily and hourly data on the same chart is a great way to provide an overview high-level data and more granular details at a glance.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Multiple Date Axes"
|
|
3
3
|
source: "https://www.amcharts.com/demos/multiple-date-axes/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Just like you can have multiple value axes to address different ranges of values, you can also have multiple date axes in one XY chart. This could be useful when comparing data between current and previous periods, for example.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Multiple Value Axes"
|
|
3
3
|
source: "https://www.amcharts.com/demos/multiple-value-axes/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
It's very common to have multiple vastly different values yet want to be able to visually compare trends and relations between them. When you chart those values on the same scale you get mostly unusable results. But if you could map different graphs along different value axes you'd get a much better visualization. And amCharts has all the tools for you to achieve this. This demo shows you how.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "No-gap Date Axis"
|
|
3
3
|
source: "https://www.amcharts.com/demos/no-gap-date-axis/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
It's a common scenario, especially in financial data, that you have non-continuous data - there are gaps at night or on weekends or holidays. And it is a widespread practice that these gaps are not displayed on the axis, showing only the dates that have data. For this purpose, we created a GaplessDateAxis class, which addresses this use-case. Just replace your DateAxis with this class and that's it - no more gaps in your chart.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Range Area Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/range-area-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Range Area Chart is a type of area chart where rather than starting on the axis, the area is represented by the space between two values. These charts are useful for displaying ranges of values, such as between minimum and maximum prices over a timespan, or projected values for the future when the projection is represented by a range instead of a specific value.
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
title: "Range Chart with Different Fill Colors"
|
|
3
3
|
source: "https://www.amcharts.com/demos/range-chart-with-different-fill-colors/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
Range charts are great for displaying the delta between two values at a specific point. Data sets with a small number of discreet values are easy to represent with a floating column chart and those are easy to color according to the trend in data. But when you have more and/or continuous (eg. date-based) values floating columns become less than optimal.
|
|
8
|
+
Range charts are great for displaying the delta between two values at a specific point. Data sets with a small number of discreet values are easy to represent with a floating column chart and those are easy to color according to the trend in data. But when you have more and/or continuous (eg. date-based) values floating columns become less than optimal.
|
|
9
9
|
So, you display the range as an area chart. But now you have a problem of displaying the positive/negative trends in data differently. Luckily, you are using amCharts and it has all the tools you need to complete the task.
|
|
10
10
|
Key implementation details
|
|
11
11
|
As mentioned, we are displaying the range via an area chart (LineSeries with both valueYField and openValueYField set, and a non-transparent fill). And to color the parts differently we go through the data, determine intersection points where open value becomes less than close (and vice versa), and create axis ranges on the series to fill those sections differently.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Reversed Value Axis"
|
|
3
3
|
source: "https://www.amcharts.com/demos/reversed-value-axis/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
In most common scenarios your line or column chart has a value axis that goes up from the bottom left corner (for positive values). But in some cases you may want to reverse this behavior. This demo shows you how to do it.
|
|
@@ -164,8 +164,7 @@ function createSeries(name, field) {
|
|
|
164
164
|
categoryXField: "year",
|
|
165
165
|
tooltip: am5.Tooltip.new(root, {
|
|
166
166
|
pointerOrientation: "horizontal",
|
|
167
|
-
labelText: "[bold]{name}[/]
|
|
168
|
-
{categoryX}: {valueY}"
|
|
167
|
+
labelText: "[bold]{name}[/]\n{categoryX}: {valueY}"
|
|
169
168
|
})
|
|
170
169
|
})
|
|
171
170
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Selecting and Marking Multiple Ranges"
|
|
3
3
|
source: "https://www.amcharts.com/demos/selecting-and-marking-multiple-ranges/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Click and drag on plot area to select a range on a chart. Chart creates an axis range in the place of a selection and also checks if a new range is not overlapping with previously created.
|
|
@@ -13,7 +13,6 @@ Tracking cursor movementAxis ranges
|
|
|
13
13
|
## JavaScript
|
|
14
14
|
|
|
15
15
|
```javascript
|
|
16
|
-
|
|
17
16
|
// Create root element
|
|
18
17
|
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
|
|
19
18
|
var root = am5.Root.new("chartdiv");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Show Percentage Change"
|
|
3
3
|
source: "https://www.amcharts.com/demos/show-percentage-change/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
If your data already has percent values, then all you need to do is to add % sign to the y axis labels, for this you set number format on the axis:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Smoothed Stacked Area"
|
|
3
3
|
source: "https://www.amcharts.com/demos/smoothed-stacked-area/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
amCharts 5 comes with a number of line smoothing algorithms that you can use to suit your particular data.
|
|
@@ -159,8 +159,7 @@ function createSeries(name, field) {
|
|
|
159
159
|
stroke: am5.color(0xffffff),
|
|
160
160
|
tooltip: am5.Tooltip.new(root, {
|
|
161
161
|
pointerOrientation: "horizontal",
|
|
162
|
-
labelText: "[bold]{name}[/]
|
|
163
|
-
{categoryX}: {valueY}"
|
|
162
|
+
labelText: "[bold]{name}[/]\n{categoryX}: {valueY}"
|
|
164
163
|
})
|
|
165
164
|
}));
|
|
166
165
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Spline Graph"
|
|
3
3
|
source: "https://www.amcharts.com/demos/spline-graph/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
A spline graph is a type of line chart that uses a smoothing algorithm to create a curved line connecting the data points, rather than straight lines. Use the slider on the plot area to adjust the level of smoothness.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Stacked Area"
|
|
3
3
|
source: "https://www.amcharts.com/demos/stacked-area/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Stacked Area Chart (also known as Stacked Area Plot) is a variation on a simple Area Chart with multiple areas stacked on top of each other. This allows comparing the evolution of the whole as well as contributions of individual parts over a period.
|
|
@@ -181,8 +181,7 @@ function createSeries(name, field) {
|
|
|
181
181
|
categoryXField: "year",
|
|
182
182
|
tooltip: am5.Tooltip.new(root, {
|
|
183
183
|
pointerOrientation: "horizontal",
|
|
184
|
-
labelText: "[bold]{name}[/]
|
|
185
|
-
{categoryX}: {valueY}"
|
|
184
|
+
labelText: "[bold]{name}[/]\n{categoryX}: {valueY}"
|
|
186
185
|
})
|
|
187
186
|
}));
|
|
188
187
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Step Line Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/step-line-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Step Line Chart (also known as Step Chart, Stepped Line Chart) is useful when you want to show changes happening at specific points. In contrast to Line Chart, which connects data points with the shortest possible line thus creating an appearance of values changing gradually, Step Line Chart highlights that values change discretely at specific points.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Step Line Without Risers"
|
|
3
3
|
source: "https://www.amcharts.com/demos/step-line-without-risers/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Step line chart is a great alternative to a regular line chart when you have discreet data items. A regular line connecting two data points would mislead the viewer suggesting that there was some continuous movement from point A to point B when in reality there was a jump with no intermediary values. Additionally, amCharts lets you display step line chart with no vertical lines making it a great alternative to a column chart when there's a lot of data.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Stream / ThemeRiver Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/stream-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
The ThemeRiver or Stream chart is a type of flow graph that shows changes of events (themes) over time.
|
|
@@ -121,8 +121,7 @@ function createSeries(field, name) {
|
|
|
121
121
|
categoryXField: "year",
|
|
122
122
|
tooltip: am5.Tooltip.new(root, {
|
|
123
123
|
pointerOrientation: "horizontal",
|
|
124
|
-
labelText: "[fontSize: 18px]{name}[/]
|
|
125
|
-
{categoryX}: [bold]{" + field + "}[/]"
|
|
124
|
+
labelText: "[fontSize: 18px]{name}[/]\n{categoryX}: [bold]{" + field + "}[/]"
|
|
126
125
|
})
|
|
127
126
|
}));
|
|
128
127
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Trend Lines"
|
|
3
3
|
source: "https://www.amcharts.com/demos/trend-lines/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
You can create real analytical trendlines, indicators, and other annotations with amCharts Stock Chart but when you need something simple you can just use the core tools at your disposal in the XY Charts.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: "Vertical Line Chart"
|
|
3
3
|
source: "https://www.amcharts.com/demos/vertical-line-chart/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Need your line chart to go from the bottom to the top instead of left to right? No problem with amCharts.
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
title: "Zoomable Value Axis"
|
|
3
3
|
source: "https://www.amcharts.com/demos/zoomable-value-axis/"
|
|
4
4
|
category: "line-area"
|
|
5
|
-
scraped: "2026-
|
|
5
|
+
scraped: "2026-09-29"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
Zoomable in any direction
|
|
9
|
-
The chart can support zooming in any direction. For that it has two settings: scrollbarX and scrollbarY. Both can be set with an instance of a Scrollbar, and configured individually.
|
|
10
|
-
[More about zooming of axes](https://www.amcharts.com/docs/v5/charts/xy-chart/scrollbars/)
|
|
11
|
-
Zooming with cursor
|
|
12
|
-
Chart cursor can be set up to perform a plethora of tasks. In this demo we have set cursor's behavior to "zoomY" which means that cursor will select and zoom vertically.
|
|
8
|
+
Zoomable in any direction
|
|
9
|
+
The chart can support zooming in any direction. For that it has two settings: scrollbarX and scrollbarY. Both can be set with an instance of a Scrollbar, and configured individually.
|
|
10
|
+
[More about zooming of axes](https://www.amcharts.com/docs/v5/charts/xy-chart/scrollbars/)
|
|
11
|
+
Zooming with cursor
|
|
12
|
+
Chart cursor can be set up to perform a plethora of tasks. In this demo we have set cursor's behavior to "zoomY" which means that cursor will select and zoom vertically.
|
|
13
13
|
[More about chart cursor](https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/)
|
|
14
14
|
|
|
15
15
|
## JavaScript
|