Skip to content
mlzummo edited this page Nov 30, 2015 · 3 revisions

AmCharts and HPCC Charts support d3 formatting/parsing & time formatting/parsing which can be utilized as follows:

For Time Series Data:

In order for the chart to understand that the data/value field your inputting is a DT field, you must set the corresponding axes Time Pattern Field (xAxisTypeTimePattern/yAxisTypeTimePattern). This will accept a D3 Time format string and parse the date into a Javascript Date Object.

https://github.com/mbostock/d3/wiki/Time-Formatting

If you would like to then change the way this DT is a displayed you can use the following field and the same formatting paradigm with the following Publish Parameter: (xAxisTickFormat/yAxisTickFormat)

You must also set the corresponding Axes Type to "Time":

For Regular Number Data:

All that must be set is the (xAxisTickFormat/yAxisTickFormat) Publish Parameter and use the Regular D3 Format String:

https://github.com/mbostock/d3/wiki/Formatting

Clone this wiki locally