Scott
Scott

Reputation: 457

Coldfusion 10 CFchart tag is merging bars

I am trying to use cfchart tags for bar charts but when I take the exact code from a site:

<cfscript>
   border={"color":"blue","radius":6,"width":2};
</cfscript>
 <cfchart format="html" type="bar" showlegend="false" chartHeight="400" chartWidth="600"   border="#border#">
   <cfchartseries >
         <cfchartdata item="2015" value=20>
         <cfchartdata item="2016" value=40>
         <cfchartdata item="2017" value=60>
   </cfchartseries>
 </cfchart>

It shows the following:

enter image description here

But it should look like this:

enter image description here

Any one experience this? See how it combines everything into one large orange figure?

Any help would be greatly appreciated. Thank you!!!

Upvotes: 1

Views: 54

Answers (1)

Scott
Scott

Reputation: 457

That ws exactly what I needed!!! Here is what I put in: <cfchartseries type="bar"> and it separated the bars. Now I can read up and further customize! Thank you so much! enter image description here

Upvotes: 0

Related Questions