-
public interface ChartEntryModelContains the data for a Chart. Pre-calculates values needed for the rendering of the Chart.
The Chart may override minX, maxX, minY, or maxY via AxisValuesOverrider. These overrides will be used in the Chart’s ChartValues instance.
It’s recommended to delegate the creation of ChartEntryModel to ChartEntryModelProducer or ComposedChartEntryModelProducer.
-
-
Method Summary
Modifier and Type Method Description IntegergetId()abstract List<List<ChartEntry>>getEntries()The chart entries (ChartEntry instances). abstract FloatgetMinX()The minimum x-axis value from among all entries. abstract FloatgetMaxX()The maximum x-axis value from among all entries. abstract FloatgetMinY()The minimum y-axis value from among all entries. abstract FloatgetMaxY()The maximum y-axis value from among all entries. abstract FloatgetStackedPositiveY()The maximum cumulated y-axis value from among all sets of entries associated by ChartEntry.x. abstract FloatgetStackedNegativeY()The minimum cumulated y-axis value from among all sets of entries associated by ChartEntry.x. abstract FloatgetXGcd()The greatest common divisor of the x values. -
-
Method Detail
-
getEntries
abstract List<List<ChartEntry>> getEntries()
The chart entries (ChartEntry instances). Multiple lists of ChartEntry instances can be provided. In such a case, entries will be associated by index, and the Chart will stack or group them if it’s a ColumnChart, and display multiple lines if it’s a LineChart.
-
getStackedPositiveY
abstract Float getStackedPositiveY()
The maximum cumulated y-axis value from among all sets of entries associated by ChartEntry.x.
-
getStackedNegativeY
abstract Float getStackedNegativeY()
The minimum cumulated y-axis value from among all sets of entries associated by ChartEntry.x.
-
-
-
-