Aligning axis range labels

Type tutorial

Labels of an axis range are shown on the axis itself by default. This demo shows how we can put them on the opposite side of the plot area, or within it. Labels on opposite side To achieve the required result, we’ll need these steps: The code: The demo: Labels inside plot area We can […]

Additional axis tooltip to display totals

Type tutorial

This demo shows how we can add an additional date axis on top of the chart to show a tooltip with sum of values of all series. The tooltip uses an adapter to dynamically calculate its content.

Auto-wrapping category axis labels

Type tutorial

This demo shows how we can use an adapter and oversizeBehavior on labels of a category axis, to make the auto-wrap automatically. The code Here’s the relevant code section: Example Related info Category axis docs Handling oversized labels Using adapters

Consistent radius of outer circles of a Force-Directed Tree

Type tutorial

This demo shows how we can use adapters to make radius of node’s outer circle be consistent, regardless of the size of the node. To make that happen, all we need to do is to create adapters to fix outer circle’s scale at 1 as well as add fixed number of pixels to its radius:

Toggle pie slice pullout via legend

Type tutorial

Normally, when you click an item in PieChart’s legend, relative slice is hidden or revealed. This quick tutorial will show you how to make the slice activate/deactivate (pull out/in) instead.

Totals on column stacks

Type tutorial

This tutorial will explain how we can place an automatically-calculated total on a stack of columns. Preparing value axis Normally, the chart would not calculate totals, saving CPU for us. We need to enable it by setting calculateTotals: true on our value axis: Adding a label bullet To place labels on or in a column, […]

Sum label inside a donut chart

Type tutorial

This tutorial will show how we can easily add some labels inside a donut chart to display complementing information, such as sum of values for all the slices. Adding a label Most of the elements in amCharts 5 is a Container, meaning it can contain other elements. Chart itself is a container. Series is a […]

Show “no data” warning on a chart

Type tutorial

This demo shows how we can use chart series’ davalidated event to display a “no data” message in a modal if data contains no items.