Skip to content

Instantly share code, notes, and snippets.

@eMaringolo
Created March 18, 2014 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eMaringolo/9630569 to your computer and use it in GitHub Desktop.
Save eMaringolo/9630569 to your computer and use it in GitHub Desktop.
renderChartOn: html
| graphId graph |
graphId := html nextId.
html div class: 'chart'; id: graphId.
graph := Rickshaw graph element: graphId.
graph width: 300.
graph height: 200.
graph addSerieNamed: 'Demo' color: 'steelblue' elements: { 0 @ 40. 1 @ 49. 2 @ 38. 3 @ 30. 4 @ 32 }.
html document addLoadScript: graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment