Hi,
Can anyone please let me know the methods that can be used to prevent colors getting mixed in XYAreaChart?
Need help ASAP.
Thanks
Pavan.
How to prevent colors getting mixed in XYAreaChart?
The series colors get mixed to produce a new color.
Guys,
Have any idea about this?
Let me put question in another way.
In an XYAreaChart, when area of any two series overlap, the corresponding colors get mixed resulting in a new color.
How to avoid this?
Please let me know if there any methods to dsiable this default behaviour.
Need help urgently.
Thanks in advance.
Pavan.
Have any idea about this?
Let me put question in another way.
In an XYAreaChart, when area of any two series overlap, the corresponding colors get mixed resulting in a new color.
How to avoid this?
Please let me know if there any methods to dsiable this default behaviour.
Need help urgently.
Thanks in advance.
Pavan.
-
- Posts: 1
- Joined: Thu Apr 28, 2005 10:23 pm
- Location: Chicago IL
here's how i turned off transparency
Code: Select all
// Create the Chart
chart = ChartFactory.createXYAreaChart(title,
xAxisLabel,yAxisLabel,
dataset,
PlotOrientation.VERTICAL,
true, // legend
false, // tool tips
false // URLs
);
XYPlot plot = (XYPlot) chart.getPlot();
//set the color transparency
plot.setForegroundAlpha(1f);