XYToolTipGenerators

'' '' XYToolTipGenerators contains factories for creating tool tip generators for xy charts.

'' '' XYToolTipGenerators contains factories for creating tool tip generators for xy charts.

chart.tooltipGenerator = XYToolTipGenerator(value => value.toString)

The following list contains various ways on how to create and set tool tip generators for xy charts:

val data = for (i <- 1 to 5) yield (i,i)
val chart = XYLineChart(data)

chart.tooltipGenerator = (dataset: XYDataset, series: Comparable[_], item: Int) =>
 val idx = dataset.indexOf(series)
 dataset.getY(idx, item).toString
}

chart.tooltipGenerator = XYToolTipGenerator { (dataset, series, item) =>
 val idx = dataset.indexOf(series)
 dataset.getY(idx,item).toString
}

chart.tooltipGenerator = XYToolTipGenerator(value => value.toString)

chart.tooltipGenerator = XYToolTipGenerator(_.toString)

chart.tooltipGenerator = XYToolTipGenerator((x,y) => s"""($x,$y)""")

chart.tooltipGenerator = XYToolTipGenerator.Default
Companion
class
trait Imports
class Object
trait Matchable
class Any

Type members

Inherited classlikes

Inherited from
Imports
object ChartTheme
Inherited from
Imports
object Layer
Inherited from
Imports

Tool tip generator factory for xy charts.

Tool tip generator factory for xy charts.

Inherited from
XYToolTipGenerators

Inherited types

type AxisLabelLocation = AxisLabelLocation
Inherited from
Imports
type BoxAndWhiskerCategoryDataset = BoxAndWhiskerCategoryDataset
Inherited from
Imports
type BoxAndWhiskerXYDataset = BoxAndWhiskerXYDataset
Inherited from
Imports
type CategoryDataset = CategoryDataset
Inherited from
Imports
type CategoryLabelGenerator = (CategoryDataset, Comparable[_], Comparable[_]) => String

Function alias for creating item labels for category charts.

Function alias for creating item labels for category charts.

Inherited from
Imports
type CategoryMarker = CategoryMarker
Inherited from
Imports
type CategoryPlot = CategoryPlot
Inherited from
Imports
type CategoryToolTipGenerator = (CategoryDataset, Comparable[_], Comparable[_]) => String

Function alias for creating tooltips for category charts.

Function alias for creating tooltips for category charts.

Inherited from
Imports
type ChartTheme = ChartTheme
Inherited from
Imports
type Color = Color
Inherited from
Imports
type Font = Font
Inherited from
Imports
type IntervalMarker = IntervalMarker
Inherited from
Imports
type IntervalXYDataset = IntervalXYDataset
Inherited from
Imports
type JFreeChart = JFreeChart
Inherited from
Imports
type Layer = Layer
Inherited from
Imports
type Marker = Marker
Inherited from
Imports
type MultiplePiePlot = MultiplePiePlot
Inherited from
Imports
type Orientation = Value
Inherited from
Imports
type Paint = Paint
Inherited from
Imports
type PieDataset = PieDataset
Inherited from
Imports
type PieLabelGenerator = (PieDataset, Comparable[_]) => String

Function alias for creating item labels for pie charts.

Function alias for creating item labels for pie charts.

Inherited from
Imports
type PiePlot = PiePlot
Inherited from
Imports
type PiePlot3D = PiePlot3D
Inherited from
Imports
type PieToolTipGenerator = (PieDataset, Comparable[_]) => String

Function alias for creating tooltips for pie charts.

Function alias for creating tooltips for pie charts.

Inherited from
Imports
type RectangleInsets = RectangleInsets
Inherited from
Imports
type RingPlot = RingPlot
Inherited from
Imports
type SpiderWebPlot = SpiderWebPlot
Inherited from
Imports
type Stroke = Stroke
Inherited from
Imports
type TableXYDataset = TableXYDataset
Inherited from
Imports
type TimePeriodValues = TimePeriodValues
Inherited from
Imports
type TimePeriodValuesCollection = TimePeriodValuesCollection
Inherited from
Imports
type TimeSeries = TimeSeries
Inherited from
Imports
type TimeSeriesCollection = TimeSeriesCollection
Inherited from
Imports
type TimeTableXYDataset = TimeTableXYDataset
Inherited from
Imports
type ValueMarker = ValueMarker
Inherited from
Imports
type XYDataset = XYDataset
Inherited from
Imports
type XYLabelGenerator = (XYDataset, Comparable[_], Int) => String

Function alias for creating item labels for xy charts.

Function alias for creating item labels for xy charts.

Inherited from
Imports
type XYPlot = XYPlot
Inherited from
Imports
type XYSeries = XYSeries
Inherited from
Imports
type XYSeriesCollection = XYSeriesCollection
Inherited from
Imports
type XYToolTipGenerator = (XYDataset, Comparable[_], Int) => String

Function alias for creating tooltips for xy charts.

Function alias for creating tooltips for xy charts.

Inherited from
Imports
type YIntervalSeries = YIntervalSeries
Inherited from
Imports
type YIntervalSeriesCollection = YIntervalSeriesCollection
Inherited from
Imports

Value members

Inherited fields

val Orientation: Orientation
Inherited from
Imports