module salix::charts::Demo
rascal-0.40.17
salix-contrib-0.2.7
Usage
import salix::charts::Demo;
Source code
http://github.com/usethesource/salix-contrib/src/main/rascal/salix/charts/Demo.rsc
Dependencies
import vis::Charts;
import salix::App;
import salix::Core;
import salix::HTML;
import salix::Index;
import salix::charts::Charts;
import util::Math;
import IO;
function chartApp
SalixApp[Model] chartApp(str id = "charts")
function chartWebApp
App[Model] chartWebApp()
alias Model
tuple[lrel[value,value] clicks, ChartData cd]
function init
Model init()
data Msg
data Msg
= doIt()
| myClick(value v1, value v2)
;
function update
Model update(Msg msg, Model m)
function demoData
ChartData demoData(int n=20)
function demoChart
Chart demoChart(ChartData theData, ChartType \type=\bar(), str title="Chart", ChartAutoColorMode colorMode=\data())
function view
void view(Model m)