ColdFusion 11 で単純な折れ線グラフを作成しようとしていますが、デフォルトで表示される完全な日付/タイムスタンプではなく、mm-dd-yy のような日付形式を表示するように xAxis をフォーマットしたいと考えています。
私のコードは次のとおりです。
<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>
xAxis 属性で次のエラーが発生しています。
You have attempted to dereference a scalar variable of type class coldfusion.runtime.Array as a structure with members.
xAxis 属性のいくつかの異なるバリエーションを試してみましたが、うまくいきませんでした。これをどの形式にするべきかについてのドキュメントは不明です。