Highlighted

CFChartSeries dataLabelStyle with multiple series

New Here ,
Jun 23, 2016

Copy link to clipboard

Copied

Greetings!

I've seen this question asked before, but have not been able to find an answer. Running CF 10.

When using cfchart with multiple series, the last cfChartSeries attribute dataLabelStyle seems to over-ride any previous series value. For example:

<cfchart format="png" style="chartStyles.xml" showLegend="no" scaleFrom="0" scaleTo="100" title="Chart 1" chartHeight="300" chartWidth="400">

     <cfchartseries type="line" dataLabelStyle="none" >

          <cfchartdata item="Salamance Branch" value="50">

         <cfchartdata item="Olean Branch" value="50">

         <cfchartdata item="Thompsons Station Branch" value="50">

         <cfchartdata item="hermitage Branch" value="50">

  </cfchartseries>

     <cfchartseries type="bar" dataLabelStyle="value" >

         <cfchartdata item="Salamance Branch" value="#randRange(0,100)#">

         <cfchartdata item="Olean Branch" value="#randRange(0,100)#">

         <cfchartdata item="Thompsons Station Branch" value="#randRange(0,100)#">

         <cfchartdata item="hermitage Branch" value="#randRange(0,100)#">

     </cfchartseries>

   

  </cfchart>

Both series will have value labels dispite the initial line series dataLabelStyle attribute of "none".

Is there anyway to correct this? I'm using WebCharts for styling, but doesn't seem to offer a solution. Thanks!

Views

205

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CFChartSeries dataLabelStyle with multiple series

New Here ,
Jun 23, 2016

Copy link to clipboard

Copied

Greetings!

I've seen this question asked before, but have not been able to find an answer. Running CF 10.

When using cfchart with multiple series, the last cfChartSeries attribute dataLabelStyle seems to over-ride any previous series value. For example:

<cfchart format="png" style="chartStyles.xml" showLegend="no" scaleFrom="0" scaleTo="100" title="Chart 1" chartHeight="300" chartWidth="400">

     <cfchartseries type="line" dataLabelStyle="none" >

          <cfchartdata item="Salamance Branch" value="50">

         <cfchartdata item="Olean Branch" value="50">

         <cfchartdata item="Thompsons Station Branch" value="50">

         <cfchartdata item="hermitage Branch" value="50">

  </cfchartseries>

     <cfchartseries type="bar" dataLabelStyle="value" >

         <cfchartdata item="Salamance Branch" value="#randRange(0,100)#">

         <cfchartdata item="Olean Branch" value="#randRange(0,100)#">

         <cfchartdata item="Thompsons Station Branch" value="#randRange(0,100)#">

         <cfchartdata item="hermitage Branch" value="#randRange(0,100)#">

     </cfchartseries>

   

  </cfchart>

Both series will have value labels dispite the initial line series dataLabelStyle attribute of "none".

Is there anyway to correct this? I'm using WebCharts for styling, but doesn't seem to offer a solution. Thanks!

Views

206

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 23, 2016 0

Have something to add?

Join the conversation