Andrew,
For the heck of it, I tried a bunch of the attribures to <cfgraph>,
and I gotta tell you, most of them didn't work! Here's a quick
run-down:
lineColor: Didn't work. CF5 default is blue, yours is red.
lineWidth: Didn't work.
fill: Didn't Work.
graphHeight: Worked better than CF5!
graphWidth: Worked better than CF5!
backgroundColor: It did something, but definitly didn't behave like CF5.
borderColor: Didn't work.
borderWidth: Didn't work.
depth: Didn't work (ie, you can't do 3d graphs).
gridLines: Didn't work (we use the default ones, and we'll like it
(ie, can't even turn them off))
Now, I've got to say that there are some things that give me great
hope. First, the dots on the line at the data points (which I
personally need to turn off, and aren't there in CF5), and the funky
backgroundColor fade. These look an aweful lot like you've implemented
jFreeChart (http://www.jfree.org/jfreechart/). If that's the case you
could extend charting ability tremendously, and have something that
would totally kill <cfgraph>. You guys have the start of something
really great here, and it would be a terrible shame if you wsted the
opportunity.
Here is my example code:
<cfgraph type="bar" fileformat="jpg"
graphheight="400" graphwidth="400">
<cfgraphdata value="2" item="2"
color="green">
<cfgraphdata value="2.5" item="2.5"
color="blue">
<cfgraphdata value="2.7" item="2.7"
color="black">
<cfgraphdata value="3" item="3"
color="purple">
</cfgraph>
<cfgraph type="line" fill="yes"
linecolor="green" bordercolor="purple"
borderwidth="10" fileformat="jpg"
graphheight="400" graphwidth="400"
gridlines="100">
<cfgraphdata value="2" item="2">
<cfgraphdata value="2.5" item="2.5">
<cfgraphdata value="2.7" item="2.7">
<cfgraphdata value="3" item="3">
</cfgraph>
<cfgraph type="line" linecolor="green"
linewidth="10"
backgroundcolor="red" borderwidth="0" depth="5"
fileformat="jpg"
graphheight="400" graphwidth="400"
gridlines="0">
<cfgraphdata value="2" item="2">
<cfgraphdata value="2.5" item="2.5">
<cfgraphdata value="2.7" item="2.7">
<cfgraphdata value="3" item="3">
</cfgraph>
All three work as expected in cf5.
Andrew
On Fri, 26 Nov 2004 15:08:22 +0000, Andrew Wu <andrew@newatlanta.com>
wrote:
> Hi Andrew,
>
> Can you supply some examples for the issues you've come across? The
> things you've mentioned should work which is why they're
undocumented.
> There maybe something subtle in your examples that is causing problems.
>
>
>
> Thanks
>
> --
> Andrew Wu
> New Atlanta Communications, LLC
>
> Andrew Eakett wrote:
>
> >Thanks Andrew.
> >
> > I've just finished registering this in your bug tracker. I
must say
> >that, as I've been playing with your <cfgraph> tag,
I've noticed quite
> >a few bits of it that don't seem to work.
> > For example, the fill attribute to a line graph does nothing. The
> >color attribute of <cfgraphdata> also gets ignored. The dot at
the
> >data points on line graphs was also a surprise.
> > Those things said, I really appreciate that your tag makes much
> >better use of the space defined by the height and width attributes of
> ><cfgraph> (much better than CF5 did).
> > I think the <cfgraph> section in the compatability guide
should be
> >greatly expanded to explain exactly what your tag will and won't
do,
> >compared to the CF5 equivilent.
> >
> >Andrew
> >
> >
> >
> >
>
>
> ------------------------------------------------------------------------
>
>
> BlueDragon-Interest. For archives and unsubscribe instructions, visit:
> http://www.newatlanta.com/bluedragon-interest.cfm
>
> BlueDragon-Blog. Edited by New Atlanta CTO Charlie Arehart:
> http://bluedragon.blog-city.com/
>
------------------------------------------------------------------------
BlueDragon-Interest. For archives and unsubscribe instructions, visit:
http://www.newatlanta.com/bluedragon-interest.cfm
BlueDragon-Blog. Edited by New Atlanta CTO Charlie Arehart:
http://bluedragon.blog-city.com/
|