I have a cfchart in a bar chart format. The Y-axis is
numbered 0, 1, 2, 3, 4 (all integers) and the data must be set at
one decimal place (2.3, 5.0, 6.2, etc), but when I have a trailing
zero (5.0) the popup on the data element shows just the integer
(5).
I thought I could force the data points to show the decimal
(e.g. 5.0) using:
<labelFormat style="pattern" pattern="#0.0#"
minFractionDigits="1"/>
And it worked. BUT, it also made the Y-axis show the decimal
(0.0, 1.0, 2.0, 3.0, etc.) which I don't want. Is there a way to
set the element data to a specific decimal place and separately
make the Y-axis only show integers? My entire code is below.
Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<frameChart is3D="false" font="Arial-12">
<frame xDepth="0" yDepth="0" type="None" outline="black"
frameSize="20" dashSize="2" stripColor="#AAFFF9C6">
<background maxColor="#AAFFFDED"/>
</frame>
<xAxis>
<labelFormat pattern="#,##0.###"/>
<parseFormat pattern="#,##0.###"/>
<titleStyle isVisible="false"/>
</xAxis>
<yAxis>
<labelFormat style="pattern" pattern="#0.0#"
minFractionDigits="1"/>
<parseFormat pattern="#0.0"/>
<titleStyle font="Arial-12">
<![CDATA[
Total Return (%)
]]>
</titleStyle>
</yAxis>
<legend spacing="-10" allowSpan="true" valign="Bottom"
font="Arial-12" isAntialiased="False" isMultiline="True"
equalCols="true">
<decoration style="None" backColor="white"/>
</legend>
<elements action="" target="" outline="#ffffff"
shapeSize="90"
lineWidth="1" showMarkers="false" fixedWidth="1">
<movie framesPerSecond="30" frameCount="30"/>
<morph stage="Rows"/>
</elements>
<popup decoration="None" background="#FFF9C6"
foreground="black" isMultiline="true" font="Arial-12"
isAntialiased="False"/>
<paint paint="Light" min="47" max="83"/>
</frameChart>