Hi ,
what we need:
a chart (composite) with multiple curves, each curves must be set to use a specific Color and a specific LineDrawStyle.
per layer there seems to be only one LineDrawStyle possible, correct ?
Therefore I had the idea to use the ChartDrawItem where the curve's key is checked and a color set accordingly. This works, only the legend color is not set, is there a similiar event for drawing the legend items ?
if not, do you see another approach ?
cheers
Great! Thank you very much :-)
The Fill color settings of the PE is the one that seems to be used for the line curves, the Stroke Color seems not to matter. Anyway it works.
You can set the color on the series. This setting will take precedence over the colormodel. Create a PaintElement of type SolidFill, set Fill, Stroke and StrokeWidth properties (I believe for line series, fill has no effect) and set the paint element to the series.PE
That was the idea but when using one layer for each curve, every curve has the same color. I think every layer is just using the first color of the colormodel, right? Can that be changed?
Tracking down the legend items in ChartDrawItem or FillSceneGraph can be difficult. I would suggest using one layer per series. This way you will have the ability to change the line draw style on each series.