The forum works again! =)
When the forum was down we emailed a question about getting PolarChart and SegmentAttributeMode to work. In the reply QC stated that this was a but and that it was fixed in the attached new jar:s. (Thanks for quick reply and new version!)
Now the problem is that I still can't get it to work.
Some extracts from my code:
I define the different Attributes I want to use:
private ChartAttribute[] colors = new ChartAttribute[]{
new ChartAttribute (Color.BLACK, 1,ChartConstants.LS_SOLID,Color.BLACK),
new ChartAttribute (Color.DARK_GRAY, 1,ChartConstants.LS_SOLID, Color.DARK_GRAY),
new ChartAttribute (Color.LIGHT_GRAY, 1,ChartConstants.LS_SOLID, Color.LIGHT_GRAY),
new ChartAttribute (Color.BLACK, 1,ChartConstants.LS_SOLID, Color.BLACK)
};
Plot definition:
private PolarScatterPlot scatterPlot;
// .......
......//
scatterPlot = new PolarScatterPlot(transform, allVectors,
ChartConstants.CIRCLE, colors[0]);
I use the following method to update the graph after I have set new data on update:
private void reloadColors(){
scatterPlot.setSegmentAttributesMode(true);
int i = 0;
for(ChartAttribute color:colors){
color.setFillFlag(true);
color.setLineFlag(true);
color.setFillColor(color.getColor());
color.setLineColor(color.getColor());
scatterPlot.setSegmentAttributes(i, color);
i++;
}
colors[colors.length-1].setFillFlag(false);
colors[colors.length-1].setLineFlag(true);
}
The only thing I run after that method when updating data is updateDraw().
So any obvious errors with this method?
If you need any more info don't hesitate to ask.