Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Changing a color of a specific point in a series (Read 3713 times)
znavot
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Dec 31st, 2013
Changing a color of a specific point in a series
Dec 31st, 2013 at 11:10am
Print Post  
Hi,

I'm looking for a way to change a color of a specific point in a series (e.g. line chart in which all points are green except for the last, which will be colored in red).

Is it possible ?

Thanks in advance,
Nir
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Changing a color of a specific point in a series
Reply #1 - Dec 31st, 2013 at 1:02pm
Print Post  
Hi,

You will have to specify a brush for each point in the chart, e.g. add this to the LineHitTester sample project and the last two scatter shapes will be drawn in a different color:

Code
Select All
//using SolidBrush = MindFusion.Drawing.SolidBrush;
lineChart1.MultiColoredShapes = true;
lineChart1.ShapeBrushes = new BrushCollection
{
	new SolidBrush(Color.Green),
	new SolidBrush(Color.Green),
	new SolidBrush(Color.Green),
	new SolidBrush(Color.Green),
	new SolidBrush(Color.Blue),
	new SolidBrush(Color.Red)
};
lineChart1.UpdateChart(); 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
znavot
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Dec 31st, 2013
Re: Changing a color of a specific point in a series
Reply #2 - Jan 1st, 2014 at 7:12am
Print Post  
It works  Smiley

Thank you,

Nir
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint