scalax.chart

ChartFactories

object ChartFactories extends ChartFactories

Contains various factories to conveniently create charts.

Usage

The only argument needed to create a chart is a dataset:

val data = Seq((0,0),(1,1),(2,2))
val dataset = data.toXYSeriesCollection("some data")

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:

val chart = XYLineChart(dataset, legend = false, domainAxisLabel = "some description")

Chart 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:

implicit val theme = org.jfree.chart.StandardChartTheme.createDarknessTheme
Source
ChartFactories.scala
Linear Supertypes
ChartFactories, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ChartFactories
  2. ChartFactories
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. object AreaChart

    Factory for area charts.

  5. object BarChart

    Factory for bar charts.

  6. object BoxAndWhiskerChart

    Factory for box and whisker charts.

  7. object LineChart

    Factory for line charts.

  8. object MultiplePieChart

    Factory for multiple pie charts.

  9. object PieChart

    Factory for pie charts.

  10. object RingChart

    Factory for ring charts.

  11. object XYAreaChart

    Factory for numeric area charts.

  12. object XYBarChart

    Factory for numeric bar charts.

  13. object XYBoxAndWhiskerChart

    Factory for box and whisker charts.

  14. object XYDeviationChart

    Factory for numeric deviation charts.

  15. object XYLineChart

    Factory for numeric line charts.

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ChartFactories

Inherited from AnyRef

Inherited from Any

Ungrouped