Function alias for creating item labels for category charts.
Function alias for creating item labels for category charts.
Function alias for creating tooltips for category charts.
Function alias for creating tooltips for category charts.
A type class that converts instances of type A
to instances of type X
.
A type class that converts instances of type A
to instances of type X
.
A generic companion for Converter type classes.
A generic companion for Converter type classes.
constrains the output type X
of the converter
the converter type
Function alias for creating item labels for pie charts.
Function alias for creating item labels for pie charts.
Function alias for creating tooltips for pie charts.
Function alias for creating tooltips for pie charts.
Enriches a collection of categorized data pairs.
Enriches a collection of categorized data pairs.
Enriches a collection of categorized 4-tuples.
Enriches a collection of categorized 4-tuples.
Enriches a collection of data pairs.
Enriches a collection of data pairs.
Enriches a collection of data 4-tuples.
Enriches a collection of data 4-tuples.
Function alias for creating item labels for xy charts.
Function alias for creating item labels for xy charts.
Function alias for creating tooltips for xy charts.
Function alias for creating tooltips for xy charts.
Factory for area charts.
Factory for area charts.
Factory for bar charts.
Factory for bar charts.
Factory for box and whisker charts.
Factory for box and whisker charts.
Factory for line charts.
Factory for line charts.
Factory for multiple pie charts.
Factory for multiple pie charts.
Factory for pie charts.
Factory for pie charts.
Factory for ring charts.
Factory for ring charts.
Factory for spider web charts.
Factory for spider web charts.
Factory for numeric area charts.
Factory for numeric area charts.
Factory for numeric bar charts.
Factory for numeric bar charts.
Factory for box and whisker charts.
Factory for box and whisker charts.
Factory for numeric deviation charts.
Factory for numeric deviation charts.
Factory for numeric line charts.
Factory for numeric line charts.
ChartFactories contains all high-level factories to conveniently create charts.
Creating Charts
The only argument needed to create a chart is a dataset:
The factories make heavy use of default arguments, so you have to type as less as possible:
val chart = XYLineChart(dataset)
For better readability of your own code, you should name all other arguments:
Creating Charts with Themes
The default theme used is the JFreeChart theme. To apply a different theme to the charts created by the factories, simply define an implicit chart theme in scope, e.g. the darkness theme from JFreeChart: