Skip to content
mlzummo edited this page Dec 14, 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 Publish Parameter and the same formatting paradigm: (xAxisTickFormat/yAxisTickFormat)

You must also set the corresponding AxisType Publish Parameter to "Time".

For Regular Number Data:

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

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