Chart for Xamarin.iOS: Bubble Series
TKChartBubbleSeries
derives from TKChartScatterSeries
and it represents a bubble chart. Bubble series visualizes TKChartBubbleDataPoint
which has three parameters - DataXValue
, DataYValue
and Area
. The Scale
and BiggestBubbleDiameterForAutoscale
properties determine the diameter of a bubble on the chart.
Here is an example of a bubble chart:
Random r = new Random ();
for (int i = 0; i < 2; i++) {
List<TKChartBubbleDataPoint> list = new List<TKChartBubbleDataPoint> ();
for (int j = 0; j < 20; j++) {
list.Add (new TKChartBubbleDataPoint (new NSNumber (r.Next () % 1450), new NSNumber (r.Next () % 150), new NSNumber (r.Next () % 200)));
}
TKChartBubbleSeries series = new TKChartBubbleSeries (list.ToArray());