0 Replies Latest reply on Jan 31, 2013 7:12 AM by Jeevan Pulugu

    Need Help in displaying data labels at the top of the bars in CFCHART

    Jeevan Pulugu

      Hi,
      I have a cfchart with two line series and one bar. I want to display the data values at the top of the bar and the line series. Below is the XML I am using:
      <cfsavecontent variable="chartStyle">
      <?xml version="1.0" encoding="UTF-8"?>
      <frameChart is3D="false" isMultiline="true">
                <frame xDepth="12" yDepth="11" outline="black" stripColor="light_gray">
                     <background maxColor="black"/>
                </frame>
      <yAxis scaleMin="0" scaleMax="30">
                     <labelFormat pattern="###"/>
      <parseFormat pattern="###"/>
      <labelStyle orientation="Horizontal"/>
      <titleStyle font="Arial-11-bold" isMultiline="false"><![CDATA[
      #Vehicles       ]]>
      </titleStyle>
      </yAxis>
      <yAxis2 scaleMin="0" scaleMax="30">
                     <labelFormat pattern="###"/>
      <parseFormat pattern="###"/>
      <labelStyle orientation="Horizontal"/>
      <titleStyle font="Arial-11-bold" isMultiline="false"><![CDATA[
      Profitability       ]]>
      </titleStyle>
      </yAxis2>

      <dataLabels foreground="black" font="Arial-12-bold"/>
      <legend allowSpan="true" equalCols="false" halign="Center" isMultiline="true" placement="Bottom"><decoration style="None"/></legend>
      <elements place="Stacked" drawOutline="false">
      <series index="1" place="Stacked">
      <dataLabel style="value"/>               

      </series>     

                <series index="2" place="Stacked">
      <!--- <![CDATA[#summaryQuery.quotes[i]#+#summaryQuery.orders[i]#]]> --->

      </series>     
      <series index="3" place="Stacked">
      <!--- <![CDATA[#summaryQuery.quotes[i]#+#summaryQuery.orders[i]#]]> --->

      </series>

      <series index="0" place="Stacked" shape="Line" isSecondAxis="true">
      <dataLabel style="value"/>
                </series>
      <series index="1" place="Stacked" shape="Line" isSecondAxis="true">
      <dataLabel style="value"/>
                </series>
      </elements>
                <table>
                     <heatmap isEnabled="false" minLevel="0.0" maxLevel="0.0"/>
                </table>
                <popup background="white" foreground="black"/>
                <paint isVertical="true" min="26" max="76"/>
                <insets right="5"/>
      </frameChart>
      </cfsavecontent>

      Can anyone please tell me what is the mistake i am doing.
      Thanks in advance,
      Jeevan Pulugu.