object Exporting extends Exporting
Exporting contains enrichments to conveniently export charts to disk.
chart.saveAsPNG("/tmp/chart.png")
Supported Formats
Charts may be exported into the following formats:
- JPEG
- PNG
- PDF, needs the optional dependency
"com.itextpdf" % "itextpdf"
on your class path - SVG, needs the optional dependency
"org.jfree" % "jfreesvg"
on your class path
Export Stages
There are different stages in which charts may be exported: encoding, writing and the actual saving of the file, which is demonstrated by the following code snippet:
val bytes = chart.encodeAsPNG() chart.writeAsPNG(System.out) chart.saveAsPNG("/tmp/chart.png")
- Source
- Exporting.scala
- Alphabetic
- By Inheritance
- Exporting
- Exporting
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
ChartJPEGExporter(chart: Chart): JPEGExporter
- Definition Classes
- Exporting
-
implicit
def
ChartPDFExporter(chart: Chart): PDFExporter
- Definition Classes
- Exporting
-
implicit
def
ChartPNGExporter(chart: Chart): PNGExporter
- Definition Classes
- Exporting
-
implicit
def
ChartSVGExporter(chart: Chart): SVGExporter
- Definition Classes
- Exporting
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )