2 Replies Latest reply on Sep 14, 2006 1:58 PM by jioshy

    CFChart yaxis numbering

      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.


      <?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"/>
      <labelFormat pattern="#,##0.###"/>
      <parseFormat pattern="#,##0.###"/>
      <titleStyle isVisible="false"/>
      <labelFormat style="pattern" pattern="#0.0#" minFractionDigits="1"/>
      <parseFormat pattern="#0.0"/>
      <titleStyle font="Arial-12">
      Total Return (%)
      <legend spacing="-10" allowSpan="true" valign="Bottom" font="Arial-12" isAntialiased="False" isMultiline="True" equalCols="true">
      <decoration style="None" backColor="white"/>
      <elements action="" target="" outline="#ffffff" shapeSize="90"
      lineWidth="1" showMarkers="false" fixedWidth="1">
      <movie framesPerSecond="30" frameCount="30"/>
      <morph stage="Rows"/>
      <popup decoration="None" background="#FFF9C6" foreground="black" isMultiline="true" font="Arial-12" isAntialiased="False"/>
      <paint paint="Light" min="47" max="83"/>