Skip to content

Instantly share code, notes, and snippets.

@wookietreiber
Last active August 29, 2015 14:22
Show Gist options
  • Save wookietreiber/b8306d282f8b9151dc11 to your computer and use it in GitHub Desktop.
Save wookietreiber/b8306d282f8b9151dc11 to your computer and use it in GitHub Desktop.
sbt itext jfreechart dependency blow up
package org.example
import scalax.chart.api._
object Main extends App {
val data = for {
i <- 1 to 5
category = i.toString
date = new org.jfree.data.time.Day(i, 2, 1998)
value = i * 2
} yield category -> Map(date -> value)
val chart = XYAreaChart.stacked(data.toTimeTable)
chart.saveAsPDF("/tmp/my-chart.pdf")
}
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
sbt.version=0.13.8
name := "test"
organization := "org.example"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.6"
libraryDependencies ++= Seq (
"com.lowagie" % "itext" % "4.2.1",
"com.github.wookietreiber" %% "scala-chart" % "0.4.2"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment