Home > Sample Charts > BubbleChart

BubbleChart

This chart is a variant of the standard ScatterPlot with the size of the markers used to show an extra dimension in the data. The third argument gives the required marker area (typically the number of incidents recorded at a certain location) and all the markers are automatically scaled to cover the range of areas given.

Any marker may be used here (including user-defined markers) but simple solid circles are probably best.


SharpPlot sp = new SharpPlot;
sp.SetMargins(6,18,24,4);
sp.SetMarkers(Marker.Bullet);
ydata = new int[] {190,270,310,120,190,230};
xdata = new int[] {17,31,29,14,16,24};
count = new int[] {12,65,77,7,9,112};
sp.BubbleChartStyle = BubbleChartStyles.ExplodeAxes|BubbleChartStyles.GridLines;
sp.DrawBubbleChart(ydata,xdata,count);

Worked Examples

bubblechart1 bubblechart2 bubblechart3 bubblechart4

Send comments on this topic
© Dyalog Ltd 2013