Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 Highlighting Datapoints
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

FPHealthcare

22 Posts

Posted - 13 Feb 2006 :  16:49:57  Show Profile  Reply with Quote
Is there a way to hightlight (different colour) certain datapoints? I have a scatter graph, and I want to be able to show that some points have more data. Is there a way of doing this with the dataset? Or do I have to create a new dataset and use a different chart attribute?

Regards

quinncurtis

1164 Posts

Posted - 14 Feb 2006 :  08:52:09  Show Profile  Reply with Quote
You can assign unique attributes to individual scatter plot points. This is discussed in the manual in the section about the SimpleScatterPlot class, and demonstrated by the example program ScatterPlots.ScatterPoints (or ChartTabDemo.ScatterPoints if you are working with an older version of the software).

Code fragment from the ScatterPoints example program.

	
SimpleScatterPlot thePlot1 = new SimpleScatterPlot(pTransform1, Dataset1,  ChartObj.SQUARE, attrib1);
thePlot1.SetSegmentAttributesMode(true);
ChartAttribute segmentAttrib = new ChartAttribute (Color.Red, 1,DashStyle.Solid, Color.Red);
segmentAttrib.SetSymbolSize(20);
thePlot1.SetSegmentAttributes(8,segmentAttrib);
thePlot1.SetSegmentAttributes(9,segmentAttrib);
thePlot1.SetSegmentAttributes(10,segmentAttrib);
thePlot1.SetSegmentAttributes(11,segmentAttrib);
chartVu.AddChartObject(thePlot1);
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07