Download QCChart2D CF Charting Library for the .Net Compact Framework

Transcript
Group Plot Objects 253
bubblesizetype
Sets whether the circle representing each bubble plot has a radius,
or an area, proportional to the Y[1] data values in the group
dataset. Set using one of the bubble plot type constants:
SIZE_BUBBLE_RADIUS or SIZE_BUBBLE_AREA.
attrib
Specifies the attributes (line color and fill color) of the bubble plot
circles.
An individual bubble in a bubble plot object can have unique attributes. Use the objects
SetSegmentAttributesMode and SetSegmentAttributes methods in the manner
described for SimplePlot objects..
Bubble plot example (extracted from the example program BigChartDemo, class
BubblePlotChart)
[C#]
TimeGroupDataset Dataset1 = new TimeGroupDataset("First",x1,y1);
Dataset1.SetStackMode(ChartObj.AUTOAXES_STACKED);
TimeCoordinates pTransform1 =
new TimeCoordinates( ChartObj.TIME_SCALE, ChartObj.LINEAR_SCALE);
pTransform1.AutoScale(Dataset1, ChartObj.AUTOAXES_FAR, ChartObj.AUTOAXES_FAR);
pTransform1.SetGraphBorderDiagonal(0.15, .15, .80, 0.75) ;
.
.
// Define axes, axes labels and grids
.
ChartAttribute attrib1 = new ChartAttribute (Color.Black, 0,DashStyle.Solid);
attrib1.SetFillColor (Color.FromArgb(177, 33, 33));
attrib1.SetFillFlag (true);
BubblePlot thePlot1 = new BubblePlot(pTransform1, Dataset1,
ChartObj.SIZE_BUBBLE_RADIUS, attrib1);
chartVu.AddChartObject(thePlot1);
[Visual Basic]
Dim Dataset1 As New TimeGroupDataset("First", x1, y1)
Dataset1.SetStackMode(ChartObj.AUTOAXES_STACKED)
Dim pTransform1 As New TimeCoordinates(ChartObj.TIME_SCALE, ChartObj.LINEAR_SCALE)
pTransform1.AutoScale(Dataset1, ChartObj.AUTOAXES_FAR, ChartObj.AUTOAXES_FAR)
pTransform1.SetGraphBorderDiagonal(0.15, 0.15, 0.8, 0.75)
.