|
Stack graph line equal to zero |
Posted by Mr. Kirchy on Sep-22-2009 11:09 |
|
I have a stack graph and it's powered by ColdFusion.
is it possible to (and I am sure it is...) to set the outline to zero pixels. My problem is that in my stack graph if one value has zeros all the way through it... the "outline" makes it look like there is data all the way accross.
below is the actual code. I can set a universal line width to 1 px. but how can I set just one to zero and leave the other to 1 px.
it's really just the top dataset outline i wish to get rid of.
Thanks for you help! Love the product!
if (outputType == "stackgraph") {
//Add an stack area layer with two data sets
layer = c.addAreaLayer2(cd.Stack);
layer.setLineWidth(1);
layer.setBorderColor(cd.SameAsMainColor);
}else{
// Add a line layer to the chart
layer = c.addLineLayer2();
layer.setLineWidth(1);
}
// Add the two data sets to the line layer.
// color for the last line
layer.addDataSet(TotalWrites, "0x515CF0", "Total Writes");
layer.addDataSet(TotalReads, "0x60ff00ff", "Total Reads"); |
Re: Stack graph line equal to zero |
Posted by Peter Kwan on Sep-22-2009 15:16 |
|
Hi Mr. Kirchy,
You may use:
//this dataset uses a transparent border
layer.addDataSet(TotalReads, -1, "Total Reads").setDataColor("0x60ff00ff", cd.Transparent)
Hope this can help.
Regards
Peter Kwan |
|