scalax

chart

package chart

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. The basic starting point is to use the following imports:

import scalax.chart._
import scalax.chart.Charting._

With these imports you can convert Scala collections to the datasets of JFreeChart and use chart factories:

val data = Seq((1,2),(2,4),(3,6),(4,8))
val dataset = data.toXYSeriesCollection("some points")
val chart = XYLineChart(dataset, title = "My Chart of Some Points")

There are also implicit conversions / views available in the scalax.chart.views package, but they are not contained by scalax.chart.Charting, because of ambiguity issues with implicit conversions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. chart
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait CategoryChart extends Chart[chart.Imports.CategoryPlot] with Orientable with DomainAxis with RangeAxis with Labels[(CategoryDataset, Int, Int) ⇒ String] with Tooltips[(CategoryDataset, Int, Int) ⇒ String]

    Represents categorized numeric data.

  2. type CategoryItemLabelGenerator = (CategoryDataset, Int, Int) ⇒ String

    Function alias for creating item labels for scalax.chart.CategoryCharts.

  3. type CategoryToolTipGenerator = (CategoryDataset, Int, Int) ⇒ String

    Function alias for creating tooltips for scalax.chart.CategoryCharts.

  4. trait Chart[P <: Plot] extends DisplayableChart with StorableChart

    Generic graphical representation of data.

  5. trait ChartFactories extends AnyRef

    Contains various factories to conveniently create charts.

  6. trait Charting extends RichChartingCollections with ChartFactories with RichChart with Imports

    Contains all enrichments.

  7. trait DisplayableChart extends AnyRef

    Provides methods for both displaying a chart and integrating it into the Scala Swing UI framework.

  8. trait DomainAxis extends AnyRef

    Mixin for charts with a domain axis.

  9. trait Imports extends TypeImports with StaticForwarderImports

    Contains imports from foreign packages.

  10. trait Labels[G] extends AnyRef

    Mixin for charts which may display labels.

  11. trait MultiplePieChart extends Chart[MultiplePiePlot] with Labels[(PieDataset, Comparable[_]) ⇒ String] with Tooltips[(PieDataset, Comparable[_]) ⇒ String]

    Represents categorized numeric data with multiple pies.

  12. trait PieChart extends Chart[chart.Imports.PiePlot] with PieChartLike[chart.Imports.PiePlot]

    Represents categorized numeric data with a pie.

  13. trait PieChartLike[P <: chart.Imports.PiePlot] extends Labels[(PieDataset, Comparable[_]) ⇒ String] with Tooltips[(PieDataset, Comparable[_]) ⇒ String]

    Template trait for pie charts.

  14. type PieSectionLabelGenerator = (PieDataset, Comparable[_]) ⇒ String

    Function alias for creating item labels for scalax.chart.PieChartLike charts.

  15. type PieToolTipGenerator = (PieDataset, Comparable[_]) ⇒ String

    Function alias for creating tooltips for scalax.chart.PieChartLike charts.

  16. trait RangeAxis extends AnyRef

    Mixin for charts with a range axis.

  17. trait RichChart extends AnyRef

    Contains an enriched JFreeChart that provides convenient access to e.

  18. trait RichChartingCollections extends AnyRef

    Contains enrichments for collections for conversions to datasets.

  19. trait RingChart extends Chart[RingPlot] with PieChartLike[RingPlot]

    Represents categorized numeric data with a ring.

  20. trait StaticForwarderImports extends AnyRef

    Contains only the static forwarder imports from foreign packages.

  21. trait StorableChart extends AnyRef

    Provides methods for saving a chart.

  22. trait Tooltips[G] extends AnyRef

    Mixin for charts which may display tooltips.

  23. trait TypeImports extends AnyRef

    Contains only the type imports from foreign packages.

  24. trait XYChart extends Chart[chart.Imports.XYPlot] with Orientable with DomainAxis with RangeAxis with Labels[(XYDataset, Int, Int) ⇒ String] with Tooltips[(XYDataset, Int, Int) ⇒ String]

    Represents numeric data.

  25. type XYItemLabelGenerator = (XYDataset, Int, Int) ⇒ String

    Function alias for creating item labels for scalax.chart.XYCharts.

  26. type XYToolTipGenerator = (XYDataset, Int, Int) ⇒ String

    Function alias for creating tooltips for scalax.chart.XYCharts.

Value Members

  1. object ChartFactories extends ChartFactories

    Contains various factories to conveniently create charts.

  2. object Charting extends Charting

    Contains all enrichments.

  3. object Imports extends Imports

    Contains imports from foreign packages.

  4. object RichChart extends RichChart

    Contains an enriched JFreeChart that provides convenient access to e.

  5. object RichChartingCollections extends RichChartingCollections

    Contains enrichments for collections for conversions to datasets.

  6. object StaticForwarderImports extends StaticForwarderImports

    Contains only the static forwarder imports from foreign packages.

  7. object TypeImports extends TypeImports

    Contains only the type imports from foreign packages.

  8. package views

    This package contains implicit views / implicit conversions.

Inherited from AnyRef

Inherited from Any

Ungrouped