Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting color to a individual point of a plot in scatter graph

Hi,

In a ScatterGraph, i want to differentiate each point with different colors based on the value of the point. is it possible?, how can we do that.

Sakthi.
0 Kudos
Message 1 of 7
(3,797 Views)
Hey Sakthi,
 
Look at the example located here: C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\UI\Graph\CustomStyles
 
You can look at the VB one or the CS one.  I think that is what you want.
 
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 7
(3,782 Views)
Thanks for the reply SAM.

I need to change the color of the individual point based on a value which will be taken from an external array. but not based on the x and y values of the PointStyleDrawArgs.

any idea?.
0 Kudos
Message 3 of 7
(3,774 Views)
Do you mean that you want to change all the points that are over 100 (for instance) to be a certain color?
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 7
(3,760 Views)
No Sam, for example, i'm having an array contains the values 12, 25, 167, 08, 53, 23, 86. Now the point which is having the value 08 should be colored light, the point having the value 167 should be colored dark, the other points are to be colored in a range of light to dark based on the value of the point.
0 Kudos
Message 5 of 7
(3,753 Views)
Something like this!!
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 6 of 7
(3,742 Views)
Thanks Sam,

This really helped me to get an idea and solution. Thanks again!.
0 Kudos
Message 7 of 7
(3,728 Views)