I am trying to create a simple line chart in ColdFusion 11 and would like to format the xAxis to show a date format like mm-dd-yy instead of the full date/timestamp that is showing by default.
My code is:
<cfchart format="html"
chartwidth="800"
chartheight="400"
xaxistitle="Date"
yaxistitle="Amount"
showlegend="yes"
fontsize="12"
font="Arial"
showMarkers="no"
xAxis=#[{"format"="Date","label":"Date"}]#>
<cfchartseries type="line"
query="getAmounts"
valueColumn="amount"
itemColumn="date">
</cfchart>
The xAxis attribute is giving this error:
You have attempted to dereference a scalar variable of type class coldfusion.runtime.Array as a structure with members.
I have tried several different variations of the xAxis attribute with no luck - the documentation is unclear as to what format this should be in. Any help would be appreciated.