public class

DonutSeries

extends PieDonutSeries<T extends PieDonutSeriesStyle>
java.lang.Object
   ↳ com.shinobicontrols.charts.Series<T extends com.shinobicontrols.charts.SeriesStyle>
     ↳ com.shinobicontrols.charts.PieDonutSeries<T extends com.shinobicontrols.charts.PieDonutSeriesStyle>
       ↳ com.shinobicontrols.charts.DonutSeries

Class Overview

A Donut Series displays magnitude data on the chart - the larger the value of the datapoint, the larger the slice representing that datapoint. Whereas data points for a CartesianSeries require x and y values, a donut series requires a name and value. The x value of a data point is used as the name of a slice, and the y value is used as its magnitude.

Styles for each individual slice can be configured in the DonutSeriesStyle.

Summary

Public Constructors
DonutSeries()
Public Methods
SeriesStyleProvider<DonutSeriesStyle> createDefaultSeriesStyleProvider()
DonutSeries does not currently make use of the SeriesStyleProvider.
float getInnerRadius()
Gets the inner radius of the series.
void setInnerRadius(float innerRadius)
Sets the inner radius of the series.
[Expand]
Inherited Methods
From class com.shinobicontrols.charts.PieDonutSeries
From class com.shinobicontrols.charts.Series
From class java.lang.Object

Public Constructors

public DonutSeries ()

Public Methods

public SeriesStyleProvider<DonutSeriesStyle> createDefaultSeriesStyleProvider ()

DonutSeries does not currently make use of the SeriesStyleProvider. As such this method returns null.

Returns

public float getInnerRadius ()

Gets the inner radius of the series. The radius is expressed as a proportion of the space available in the chart's plot area NB. This behavior differs from the equivalent in the shinobicharts iOS version.

Returns
  • the inner radius value of the series.

public void setInnerRadius (float innerRadius)

Sets the inner radius of the series. The radius is expressed as a proportion of the space available in the chart's plot area NB. This behavior differs from the equivalent in the shinobicharts iOS version.

Parameters
innerRadius the inner radius for the series