This package contains a library for creating and working with charts.
This package contains a library for creating and working with charts. It wraps
JFreeChart, much like scala.swing does with the original
javax.swing package.
Getting Started
There is an all you can eat import providing all the high-level functionality of this
library:
import scalax.chart.api._
val data = for (i <-1 to 5) yield (i,i)
val chart = XYLineChart(data)
chart.saveAsPNG("/tmp/chart.png")
object MyChartApp extendsAppwith scalax.chart.module.Charting {
val data = for (i <-1 to 5) yield (i,i)
val chart = XYLineChart(data)
chart.saveAsPNG("/tmp/chart.png")
}
The de.sciss.chart.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 de.sciss.chart.module.Charting module. From there on you can discover the modules one by one.
This package contains a library for creating and working with charts. It wraps JFreeChart, much like
scala.swingdoes with the originaljavax.swingpackage.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 de.sciss.chart.api object is also contained by de.sciss.chart.module.Charting, which you can either import or use as a mixin:
The de.sciss.chart.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 de.sciss.chart.module.Charting module. From there on you can discover the modules one by one.