Last active
August 29, 2015 14:22
-
-
Save wookietreiber/b8306d282f8b9151dc11 to your computer and use it in GitHub Desktop.
sbt itext jfreechart dependency blow up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sbt.version=0.13.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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