A simple example of a D3 JavaScript program in Kotlin
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.
lib
src
.gitignore
KotlinFunWeb.iml
KotlinFunWeb.ipr
KotlinFunWeb.iws
LICENSE.txt
README.md
index.html

README.md

kotlin-js-D3js-example

A simple example of a D3 JavaScript program in Kotlin. The example is based on the US State Map example. Given that the original program is licensed under the GPL 3, so is this one.

The program display a map of USA States and a tooltip showing randomly generated temperature data when the mouse pointer hover a specific state.

The example is written in Kotlin that in transpiled in JavaScript by the Kotlin compiler. The objective of this simple example is showing how to use Kotlin for creating JavaScript programs and how to use JavaScript libraries from Kotlin.

The text of the tutorial is available at Kotlin Javascript Target: Use Kotlin in the Browser.