Last active
November 9, 2015 11:46
-
-
Save wmealing/3a3f4ff338030df6e99a to your computer and use it in GitHub Desktop.
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
https://clojars.org/cljsjs/chartist | |
Library: | |
https://gionkunz.github.io/chartist-js/ | |
Converting: "DISTRIBUTED SERIES example" | |
(def overview-monthly-data (clj->js [{:series [20 60 120 200 180 20 10]} | |
{:labels ['XS' 'S' 'M' 'L' 'XL' 'XXL' 'XXXL'] | |
}] | |
)) | |
(def overview-monthly-options(clj->js {:distributeSeries true})) | |
(js/Chartist.Bar (js/document.getElementById "what") | |
overview-monthly-data | |
overview-monthly-options) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment