Hi,
I'm using InfragisticsSL4 v 10.2 and have an issue when I change the DataPointColor for a Line Chart to DataPointColor.Different i.e. Series.DataPointColor = DataPointColor.Different
The problem can be seen in the images below.
The first image shows when I have changed the DataPointColor to DataPointColor.Different, where the Legend/Series on the right hand side seems to be repeating and shows the Date (x axis)?
Whereas, in the second image, when I don't change the DataPointColor and leave this as the default, it returns the expected output for the Legend/Series with the right colors.
The reason, I need to set the DataPointColor to Different is I am modifying the color for the line chart which works fine for the Pie and Bar Charts; but not the line chart where I get the issue with the Legend/Series not returning what I expect.
Can I please have some assistance with this?
Hello Canon,
Thank you for your post. I have been looking into it and I can suggest you use the approach I shared with you here:
http://www.infragistics.com/community/forums/p/90291/446657.aspx#446657
for changing the DataPoint colors and leave DataPointColor Property to its default value. As I said in the referenced forum thread, you should copy the template for the series you are going to use, in your case line series, because in the sample I used Column Series. Please let me know if you need further clarifications on this matter.
Looking forward for your reply.
Hi Stefan,
If I change the colours of the line chart, they change fine; the problem, is the series/legend doesn't update accordingly as shown in the images provided before.
Can you please specify whether there is a way to directly manipulate the series/legend colours? So instead of using the DataPointColor Property, then I'll be setting the series/legend colours in code?
Cheers,
Canon.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thanks for the follow up.
Yes, I managed to solve the problem by setting the Fill property of the Series to have the color I need it to have instead of setting the DataPoint Fill. i.e. Series.Fill = New SolidColorBrush(Color.FromArgb(255, 231, 161, 162))
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.