Disabling SankeyDiagram initial animation

Type tutorial

This supershort tutorial will show how to disable SankeyDiagram’s initial “fold-out” animation. Disabling animation If you have “animated” theme enabled, SankeyDiagram will fold out its nodes from left to right when it first loads. For that specific animation, it uses its interpolationDuration setting. So, to make the nodes appear instantly, all we have to do […]

Axis labels at arbitrary values on GaugeChart

Type demo

Normally, an axis on a GaugeChart will place labels at convenient intervals – so they are not too crammed and not too sparse. It will depend on actual chart size. However, in some case you might want to place labels at exact values, no matter what. This demo will show how you can disable axis […]

Clickable chart thumbnails

Type demo

This demo shows how we can use a custom function to defer chart instantiation and replace them with a thumbnail, which once clicked would be automatically replaced with a real chart.

Generating static charts

Type tutorial

Some dashboards require charts in them to be fully interactive. Some don’t. Sometimes we wish to churn out charts to the screen as as quick as possible, and with as little memory footprint as possible. This tutorial will walk through the process of generating static SVG for charts using a single chart template. Dynamic vs. […]

Setting colors of NavigationBar in TreeMap

Type demo

This demo shows how default colors of the links in NavigationBar on a TreeMap chart. chart.navigationBar = new am4charts.NavigationBar(); chart.navigationBar.links.template.fill = am4core.color(“#691E06”); chart.navigationBar.activeLink.fill = am4core.color(“#8F250C”); chart.navigationBar = new am4charts.NavigationBar(); chart.navigationBar.links.template.fill = am4core.color(“#691E06”); chart.navigationBar.activeLink.fill = am4core.color(“#8F250C”); { // … “navigationBar”: { “links”: { “fill”: “#691E06” }, “activeLink”: { “fill”: “#8F250C” } } }

Trigger a replay of the chart initial animations

Type demo

Most of the elements on a chart – e.g. series or chart itself – have appear() method. Calling it will re-play whatever animation was played when the chart was first loaded, for example series morphing into place. This demo showcases this functionality.

Combining local data from multiple series for export

Type demo

In amCharts 4 each series can have its own data (set via own data property). Such data will not be exported using exporting functionality. This demo shows how we can use export’s data adapter to combine local data from multiple series in export.

Customizing ClockHand

Type demo

This demo shows how we can customize GaugeChart hand by pushing literally any element into it, e.g. Triangle to replace the tip an and SVG Image to replace pin.