none
Charts: Multiple colors on the same line series

    Question

  • Hi,

    I'm still relatively new to silverlight charts and I was wondering if there is a way to display multiple colors on the same line series.

    Basically I have a line series chart that displays temperature over time. Along with these two values I have a third boolean value. Now depending on whether or not this value is true I want the color of either the line itself or the background of the chart to change.

    Please take a look at the images below for a better understanding of what I mean.

    This is how my chart currently looks:

    http://a.imagehost.org/0340/mylineseries.jpg

    This is what I want to happen (Whichever one is easiest):

    http://a.imagehost.org/0541/lineseries.jpg

    http://i.imagehost.org/0352/lineseries2.jpg


    Any help will be greatly appreciated!

    Note: I am using Silverlight 4 with Apr 2010 Toolkit.

    Friday, September 03, 2010 7:54 AM

All replies

  • Sorry about bumping this old thread but i have the same issue... is it possible to have multiple colors on the same series of a line chart?


    Thanks in advance.

    Monday, March 07, 2011 7:01 AM
  • Hi

    Did you ever resolve this? I also would like to be able to show more than one color on the line of a single line series

    Thursday, May 05, 2011 3:21 AM
  • Sorry for bumping this thread again but can anyone give any hint about this issue? Is it possible to achieve this result with silverlight toolkit?

    Thanks

    Friday, May 04, 2012 11:06 AM
  • I think you can style the points.  Then in the style, use a property of your point object that binds to the color.

    I haven't done it, but I think you can.

    Friday, May 04, 2012 11:17 AM
  • But when i style the points don't i style the entire line points? Can i pick the ones i want and style them separately?

    Friday, May 04, 2012 11:40 AM
  • You style the point.  Then you can, for instance, use a value converter to convert your point information to color based on your logic.  You bind the style background to the point data, for instance.  So each point can be a different color based on the data.  Or they can all be the same, if the data for the color is all the same.

    You COULD programmatically apply a style to just certain points, but I wouldn't do that.  Too much work for questionable benefit.

    Friday, May 04, 2012 11:51 AM