Вопрос

I'm rendering a FusionCharts line chart that represents a change of percentage value over time.

I'm providing the values of each data point in decimal format (that is 0.01 for 1% and so on).

FusionCharts seems to have rich capabilities for number formatting (see e.g. the docs on number scaling) but I can't seem to figure out how to simply format the decimal values like 0.03 as percentages (3%).

Это было полезно?

Решение

To format decimal values into percentage can be achieved thru Number Scaling. Using "numberScaleValue" and "numberScaleUnit", decimals [0.03] will be converted to 3%

`<chart numberScaleValue='.01' numberScaleUnit='%'..>`
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top