• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

CFGRAPH Formatting and Display

Hi guys,

I'm trying to build a chart. I'm getting statistics for page views. The chart should show a bar for each minute in an hour.

aka 60 bars.

However, I only want the x axis to be labeled for every 5 minutes. A perfect example, which I am trying to duplicate, can be found at

http://bit.ly/info/aUjFpL

Look at the "now" graph. As you can see, only markers for 5 minute intervals are labeled on the x axis, but a graph is generated for each minute.

My guess is I setup two chart series, and hide the item label for the single minute graph on series 1, and on series 2, I hide the graph but only show the item label??

How do I set this up? I'm looking at examples, and I'm not sure how to get this configured...

<!--- I'd like to show these graphs, but not the itemlabel for each--->
<cfchartseries type="bar" colorlist="red,green,blue,black">
<cfchartdata item="1 minute" value="#1#">
<cfchartdata item="2 minute" value="#2#">
<cfchartdata item="3 minute" value="#3#">
.....
<cfchartdata item="59 minute" value="#59#">
<cfchartdata item="60 minute" value="#60#">
</cfchartseries>


<!---I'd like to show the item label, but not the graph --->
<cfchartseries type="bar" colorlist="red,green,blue,black">
<cfchartdata item="5 minute" value="#5#">
<cfchartdata item="10 minute" value="#10#">
<cfchartdata item="15 minute" value="#15#">
.....
<cfchartdata item="60 minute" value="#60#">
</cfchartseries>
 
Back
Top