Type-safe and Scala-friendly library over Chart.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
demo
project
src/main/scala/io/surfkit/clientlib
.gitignore
LICENSE
README.md
build.sbt

README.md

scalajs-chart

Type-safe and Scala-friendly library over Chart.js.

Dependency Info

Scala.js.

ChartJS

Get started

I assume that you have setup a ScalaJS project before. If this is not the case you can follow the instructions and some basic example on the Scala.js homepage.

Include Chart.js on your page

 <script src="Chart.js"></script>

Or better yet... if you are using WebJAR you can simply include the following line in your build.sbt

"org.webjars"                 % "chartjs"              % "1.0.2"

Build.sbt

Add the following dependency to your porject.

"io.surfkit" %%% "scalajs-chart" % "0.1-SNAPSHOT",

Some Examples

Here are some of the Chartjs examples demonstrated in a type safe scalaJS way.

TODO

Initialize ...

object todo{

}