|
Stacked Area Chart - edge |
Posted by jacek on May-05-2009 04:55 |
|
Peter,
Do you have way to change color or to remove black area edge from Stacked Area Chart?
Thanks,
jacek |
Re: Stacked Area Chart - edge |
Posted by Peter Kwan on May-06-2009 00:30 |
|
Hi jacek,
You may try:
$layer->setBorderColor($perlchartdir::SameAsMainColor);
Hope this can help.
Regards
Peter Kwan |
Re: Stacked Area Chart - edge |
Posted by jacek on May-07-2009 22:27 |
|
It works great, thanks! |
Re: Stacked Area Chart - edge |
Posted by skirchoff on Jul-28-2009 22:20 |
|
Peter,
how would I do this in coldfusion. I have the same problem. the black line is so thick and my data is so close together that is ruins the graph. having the line 1 px wide but the same color of each data set would fix the issue.
or just haivng the ability to do a stacked line graph would fixe it too. but I don't think that is possible.
the below output works, but with great sacrifice. when I place the line width to 0, some of my data has such tight spikes that they fail to show in the graph.
if (outputType == "stackgraph") {
//Add an stack area layer with three data sets
layer = c.addAreaLayer2(cd.Stack);
// Set the default line width to 2 pixels
layer.setLineWidth(0);
}else{
// Add a line layer to the chart
layer = c.addLineLayer2();
// Set the default line width to 2 pixels
layer.setLineWidth(1);
}
layer.addDataSet(TotalReads, "0x60ff00ff", "Total Reads");
layer.addDataSet(TotalWrites, "0x515CF0", "Total Writes"); |
Re: Stacked Area Chart - edge |
Posted by Peter Kwan on Jul-29-2009 00:30 |
|
Hi skirchoff,
The equivalent code in ColdFusion is:
layer.setBorderColor(cd.SameAsMainColor);
Hope this can help.
Regards
Peter Kwan |
Re: Stacked Area Chart - edge |
Posted by Sam Kirchoff on Aug-01-2009 01:01 |
|
Perfect! This works great! |
|