0
votes

I'm trying to create a chart using AMCharts V4. The values are given in absolute, and I want to have the chart in percentages: values, y-axis, etc.

The docs are here: https://www.amcharts.com/docs/v4/tutorials/plotting-series-from-calculated-values/

However, I'm having some trouble. Pls consider the following codepen forked from the official AMCharts documentation:

https://codepen.io/otmezger/pen/RwVzmjv

As the docs suggest, I have valueAxis.calculateTotals = true; enabled.

The line series.dataFields.valueYShow = "totalPercent"; or series.dataFields.valueYShow = "percent"; renders the graph useless.

only if I disable them, the graph will show in absolute numbers.

what am I missing? how can I make series.dataFields.valueYShow = "percent"; work?