Represents a line of reference.
Represents categorized numeric data.
Represents categorized numeric data. These charts have a domain axis that consists of the categories and a numeric range axis.
Generic graphical representation of data.
Generic graphical representation of data.
This abstraction provides direct integration with the Scala Swing UI framework.
val component = chart.toComponent val frame = chart.toFrame()
There is also a way to immediately display the chart in a new GUI window. This is intended for interactive usage, e.g. when working with the Scala REPL. The simplest form is:
chart.show()
Listen to UI mouse events:
import scalax.chart.event._ val chart = ??? val ui = chart.toComponent // or chart.toFrame() val reactor = ??? reactor.listenTo(ui) reactor.reactions += { case event: ChartMouseEvent => // do something with event }
See module.Exporting for more information.
A template class for companion objects of Chart classes.
Mixin solely for the purpose of providing common documentation macros.
Mixin solely for the purpose of providing common documentation macros.
The following list contains macros that are usually overridden by concrete representations:
$chart
= chart$Chart
= ChartThe following list contains basic macros that are usually not overridden:
$data
= the data the chart will visualize$legend
= whether or not the chart will contain a legend$orientation
= the orientation of the chart$peer
= the underlying chart$resolution
= dimension / geometry / width x height$theme
= the theme to apply to the chart$title
= the title of the chartRepresents categorized numeric data with multiple pies.
Represents categorized numeric data with a pie.
Represents categorized numeric data with a ring.
Represents categorized numeric data with a "Spider Web" radar.
Represents numeric data.
Low-level factory for category charts.
Provides a very basic factory to turn any JFreeChart
into a Chart
and contains default settings.
Factory for multiple pie charts.
Factory for pie charts.
Factory for ring charts.
Factory for SpiderWeb charts.
Low-level factory for XY charts.
All-you-can-eat import providing all the high-level functionality of this library.
All-you-can-eat import providing all the high-level functionality of this library.
module for a la carte imports and documentation thereof
This package provides a la carte imports.
This package provides a la carte imports. It is organized into modules following the Scala's Selfless Trait Pattern. Some of these modules depend on each other. In this case, there is often a short documentation in the higher-level module and links to the lower-level modules. Have a look for yourself and start at the highest-level all you can eat module Charting.
This package contains a library for creating and working with charts. It wraps JFreeChart, much like
scala.swing
does with the originaljavax.swing
package.Getting Started
There is an all you can eat import providing all the high-level functionality of this library:
All of the functionality of the api object is also contained by module.Charting, which you can either import or use as a mixin:
The module package provides a la carte imports, which you can import or mix in for only parts of the API. To find out more about the modules in detail, have a look at the documentation of the module.Charting module. From there on you can discover the modules one by one.