MEAN Stack Plotly.js (https://github.com/kaufmann42/meanjs-plotly)
(https://github.com/alonho/angular-plotly)
Install with bower:
bower install plotly --save
bower install meanjs-plotly --save
Include angular, plotly and meanjs-plotly:
To your env/all.js file add:
js: [
'public/lib/angular-plotly/src/angular-plotly.js',
'public/lib/plotlyjs/plotly.js'
],
Add a chart:
<plotly pdata="data" playout="layout" poptions="options"></plotly>
The values expected for pdata
, playout
and poptions
can be found in plotly's documentation.