Creates a time series plot given x values and y values
Note that the x values should be unix timestamp in ms.
//for example //assuming data represents a mongodb aggregation result by year lett = data.map(x=> (newDate(x.year,0,1)).getTime() ) ; letcount = data.map(x=>x.count) ; letts = require("tidyscripts_node") ; //to use bokeh api you need to first initialize it leti = ts.apis.bokeh.api.get_interface() ; //now you need to connect to the websocket server which is hosted on port 9001 by default //then you can graph ts.apis.bokeh.plots.time_series( t, count ) ;
//Note: I plan to simplify this process in the future, for more automated plotting
Creates a time series plot given x values and y values Note that the x values should be unix timestamp in ms.