Hi Amit,
With little help I managed to include ChartJS in BC Gadget, as well in wM 9.10:
view.xhtml looks like
<html>
<div id="chart-container" >
<h3></h3>
<canvas id="bar" class="chart chart-bar" chart-data="data"
chart-labels="labels" chart-series="series" chart-dataset-override="datasetOverride"/>
<input type="button" data-ng-click="refreshHistogram()" class="bc-button"
value="Refresh"></input>
</div>
</html>
there need to be some change in config.js:
...
var ProcessHistogramChart_AE43CF20_3F05_1034_A466_1_module = angular.module('ProcessHistogramChart_AE43CF20_3F05_1034_A466_1', ['adf.provider','chart.js'])
...
and additional settings into gadget definition file
...
<gadgetScripts>
<script>/WxPrimeGadgets/gadgets/ProcessHistogramChart/scripts/Chart.min.js</script>
<script>/WxPrimeGadgets/gadgets/ProcessHistogramChart/scripts/angular-chart.min.js</script>
<script>/WxPrimeGadgets/gadgets/ProcessHistogramChart/scripts/config.js</script>
<script>/WxPrimeGadgets/gadgets/ProcessHistogramChart/scripts/controller.js</script>
<script>/WxPrimeGadgets/gadgets/ProcessHistogramChart/scripts/custom.js</script></gadgetScripts>
...
The full example is attached.
Regards,
Marko
WxPrimeGadgets.zip (51.3 KB)
#MWS-CAF-Task-Engine#webMethods-BPMS#webMethods