Individual thresholds for columns

Type tutorial

This tutorial will show how you can use additional series to apply individual thresholds to columns in a ColumnSeries. The task Say we have a column chart and would like to apply individual threshold values for each column. Our data might look something like this: [{ “category”: “Research”, “value”: 450, “threshold”: 220}, { “category”: “Marketing”, […]

“3D” line series

Type tutorial

This tutorial will show how you can easily create a “3D stack” effect on regular LineSeries. Base chart Let’s take this chart as an example: Bit of a mess. It would help, if we somehow would be able make each individual LineSeries stand out. Enabling 3D The first step is to go from regular XYChart […]

Disabling scrollbar grips

Type tutorial

This short tutorial will show how you can disable grip buttons on chart Scrollbar. Here’s a regular scrollbar: Scrollbar’s grips are accessible via its startGrip and endGrip properties. To disable them, simply use their disabled properties: chart.scrollbarX.startGrip.disabled = true;chart.scrollbarX.endGrip.disabled = true; chart.scrollbarX.startGrip.disabled = true;chart.scrollbarX.endGrip.disabled = true; { // … “scrollbarX”: { “type”: “Scrollbar”, “startGrip”: { […]

Handling axis zoom events via API

Type tutorial

Any axis in amCharts 4 can be zoomed. And sometimes we need to know when that happens, as well as the range of the new zoom. This tutorial will walk through all the necessary information to make that happen. This works a bit differently on different axis types, so we’ll explore them separately. Catching zoom […]

Using percent values in series

Type tutorial

In our everyday charting we mainly use absolute values. However, sometimes we might need to show how specific value relates to other elements. In this case relative percent value is much more representative than absolute one. This tutorial will explain ways we can use such relative values. Intro Let’s start with a fairly simple stacked […]

Column labels as categories

Type tutorial

This tutorial will explain how individual column labels (bullets) can be used as Category axis labels. The task During the course of this tutorial, we are going to give a fairly basic clustered column chart a makeup. Let’s do this step by step. Moving categories up First task is to move those year categories up […]

Custom ValueAxis grid using ranges

Type tutorial

ValueAxis is a clever kid. It will try to space out its grid/labels in a way that they come in non-crowded “pretty” increments, e.g. in 10 incremental steps. But what if we want to show custom step increments, like every 25? This tutorial will explain how to do that. The task Here’s a very basic […]

Non-standard legend alignment

Type tutorial

You can use position to place chart Legend on top, bottom, left, or right. In all those cases, Legend will center across the edge it is placed on. This tutorial will show some other alignment options. Left and right positions When legend position is set to either “left” or “right”, it is aligned vertically to […]

Highlighting column series on legend click

Type tutorial

During the course of this tutorial we’ll modify the functionality of the legend from toggling series on and off, to rather highlighting it. Base chart Here’s our base chart we’re going to be working with: It has a legend, which acts normally: toggles relative series on and off on click. We’ve also set up our […]

Totals on column stacks

Type tutorial

Building column stacks is easy: just set stackable = true on each column series. This tutorial will show how we can display automatic total value of the whole stack on top of it. Base chart Here’s a base chart we’re going to start with. It’s already got several ColumnSeries stacked. It also has “label bullets” […]