'' '' XYLabelGenerators contains factories for creating label generators for xy charts.
'' '' XYLabelGenerators contains factories for creating label generators for xy charts.
chart.labelGenerator = XYLabelGenerator(value => value.toString)
The following list contains various ways on how to create and set label generators for xy charts:
val data = for (i <- 1 to 5) yield (i,i)
val chart = XYLineChart(data)
chart.labelGenerator = (dataset: XYDataset, series: Comparable[_], item: Int) =>
val idx = dataset.indexOf(series)
dataset.getY(idx, item).toString
}
chart.labelGenerator = XYLabelGenerator { (dataset, series, item) =>
val idx = dataset.indexOf(series)
dataset.getY(idx,item).toString
}
chart.labelGenerator = XYLabelGenerator(value => value.toString)
chart.labelGenerator = XYLabelGenerator(_.toString)
chart.labelGenerator = XYLabelGenerator((x,y) => s"""($x,$y)""")
chart.labelGenerator = XYLabelGenerator.Default
- Companion
- class
Type members
Inherited classlikes
Label generator factory for xy charts.
Label generator factory for xy charts.
- Inherited from
- XYLabelGenerators
Inherited types
Function alias for creating item labels for category charts.
Function alias for creating item labels for category charts.
- Inherited from
- Imports
Function alias for creating tooltips for category charts.
Function alias for creating tooltips for category charts.
- Inherited from
- Imports
Function alias for creating item labels for pie charts.
Function alias for creating item labels for pie charts.
- Inherited from
- Imports
Function alias for creating tooltips for pie charts.
Function alias for creating tooltips for pie charts.
- Inherited from
- Imports
Function alias for creating item labels for xy charts.
Function alias for creating item labels for xy charts.
- Inherited from
- Imports
Function alias for creating tooltips for xy charts.
Function alias for creating tooltips for xy charts.
- Inherited from
- Imports