Problem in displaying the Bar chart using coldFusion.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnVarma
    New Member
    • Feb 2008
    • 2

    Problem in displaying the Bar chart using coldFusion.

    Hi All,

    Iam facing a problem with bar chart using coldFusion.

    if there is only one <cfchartserie s> tag then the seriesLabel attribute is not displaying instead of that the items of the cfchartdata are displaying.
    if there are more then one <cfchartserie s> then the seriesLabel specified is displaying properly.

    Please look at the code and its corresponding bar chart attached .

    Code -1 and BarChart1 :
    [CODE=cfm]<cfchart format="jpg" xaxistitle="Mon th" yaxistitle="Mon thlyTotal" seriesPlacement ="stacked" showLegend="yes " showMarkers="no " chartHeight="30 0" chartWidth="400 " >
    <labelStyle orientation="Ho rizontal"/>
    <cfchartserie s type="bar" seriesLabel="TE XAS" >
    <cfchartdata item="jan2007" value="1">
    <cfchartdata item="Feb2007" value="3">
    <cfchartdata item="Mar2007" value="2">
    <cfchartdata item="Apr2007" value="4">
    </cfchartseries>
    </cfchart>
    [/CODE][IMG]E:\ManRIMS\Scre enShots\BarChar t1.jpeg[/IMG]
    Code-2 and BarChart2 :

    [CODE=cfm]<cfchart format="jpg" xaxistitle="Mon th" yaxistitle="Mon thlyTotal" seriesPlacement ="stacked" showLegend="yes " showMarkers="no " chartHeight="30 0" chartWidth="400 " >
    <labelStyle orientation="Ho rizontal"/>
    <cfchartserie s type="bar" seriesLabel="TE XAS" >
    <cfchartdata item="jan2007" value="1">
    <cfchartdata item="Feb2007" value="3">
    <cfchartdata item="Mar2007" value="2">
    <cfchartdata item="Apr2007" value="4">
    </cfchartseries>
    <cfchartserie s type="bar" seriesLabel="DA LLAS">
    <cfchartdata item="jan2007" value="1">
    <cfchartdata item="Feb2007" value="3">
    <cfchartdata item="Mar2007" value="2">
    <cfchartdata item="Apr2007" value="4">
    </cfchartseries>
    </cfchart>
    [/CODE][IMG]E:\ManRIMS\Scre enShots\BarChar t2.jpeg[/IMG]

    The Barchart1 need to show TEXAS as the seriesLabel instead of that its showing the Months which are the X-axis variables.
    The Barchart2 is showing properly as per the code.

    I tried my best to solve it by my self but iam unable to find it. Requesting u people give me ur ideas.
    I am waiting for ur Suggestions.

    ThankYou,
    Varma
    Attached Files
    Last edited by acoder; Feb 29 '08, 09:24 AM. Reason: Added code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Hi Varma, welcome to TSDN!

    Now, I'm not sure if it's possible to change this behaviour, but you can try changing the style of the chart using XML or WebCharts - see this link for more information.

    Hope this helps. Good luck.

    Comment

    Working...