dd-dashboard-widget-dynamic-sample v0.1.4
DO4DSX Dashboard Widget Dynamic Sample
Decision Optimization for DSX Dashboard Widget Sample. https://github.ibm.com/gilles-dandrea/dd-dashboard-widget-dynamic-sample
See Dashboard GitHub Repository for more informations on Dashboards.
Requirements for development
- Recent Node and Npm installed. I currently use node v8.9.4 and npm v5.6.0
- Install yarn with
npm i -g yarn
Note that everything below is MacOS oriented, but it should work on windows too.
How to use this Widget:
Install required packages with
yarn install
Build the dynamic sample widget library with
yarn build
(Don't) publish the library with
yarn publish
. (it is already published)In DO4DSX Dashboard, edit the JSON configuration file and add the following lines:
"extensions": [
{
"widget": "dd-dashboard-widget-dynamic-sample",
"js": "https://unpkg.com/dd-dashboard-widget-dynamic-sample"
}
]
widget
is the global variable defined by the library. By default it's the library name and it can be customized in webpack.config.lib.js
thanks to library
field.
js
is the URL of the widget library. An additional CSS can be loaded with css
.
How to enhance this Widget:
See mode advanced examples in Dashboard GitHub Repository, such in packages/dd-dashboard-widget-table
or packages/dd-dashboard-widget-vega-charts