Ya I have seen this behavior myself.  I don't think it is something that
is fixable -- it is inherent in the graphing engine of CF.

--Josh

---
Exciteworks -- expert hosting for less!
http://exciteworks.com
specializing in reseller accounts


Nick Baker wrote:

> CF 5.0
>
> <cfgraph>
> <cfgraphdata>
>
> I am working on a template plotting 24 hours of data collected every 5
> minutes.  We want hourly Tic Marks along the bottom of the graph.
>
> The following works but the Tic Marks are not properly aligned. Plotting
> form left to right the first Tic Mark (representing the start) is fairly
> close but every so slightly to the left of where it should be. The
> last (or
> 25th) Tic Mark is about an hour left (or short of the end) of where is
> should be.
>
> Anyone have any ideas about this this?
>
> Thanks,
>
> Nick
>
> <cfgraph type="LINE"
>         scalefrom="0"
>         scaleto="#VerticalScale#"
>         itemlabelfont="Arial"
>         itemlabelsize="8"
>         itemlabelorientation="HORIZONTAL"
>         fill="yes"
>         graphwidth="500"
>         backgroundcolor="##E1FAFF"
>         bordercolor="##D9FFFF"
>         borderwidth="1"
>         depth="0"
>         gridlines="4">
>
> <cfset TicCount = 1>
> <cfoutput query="PlotResults">
> <cfif TicCount EQ 1>
> <cfgraphdata item="|" value="#PlotData#">
> </cfif>
> <cfif (TicCount MOD 5) EQ 0>
> <cfgraphdata item="|" value="#PlotData#">
> <cfelse>
> <cfgraphdata item="" value="#PlotData#">
> </cfif>
> <cfset TicCount = TicCount +1>
> </cfoutput>
> </cfgraph>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to