Widget:Chartjs bar: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
Tags: Reverted 2017 source edit
No edit summary
Tags: Manual revert 2017 source edit
Line 10: Line 10:
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<!--{counter name="counterDonut" assign="countDonut"}-->
<!--{math equation='rand(0,1000)' assign="randomValue"}-->
<!--{assign var=time value=time()}-->
<!--{$ID = "donut-$countDonut-$time-$randomValue"}-->
<div>
<canvas id="myChart-1"></canvas>
</div>
<script>
<script>


// defer script execution until the mediawiki loader and jQuery are available
// defer script execution until the mediawiki loader and jQuery are available
RLQ.push([[], function () {
RLQ.push([[], function () {
mw.loader.using('ext.iswiki.chartjs').then(function(){
mw.loader.using('ext.iswiki.chartjs_doughnut').then(function(){
alert('Widget Test');
const ctx = document.getElementById('myChart-1');
drawDonutChart(ctx);
});
});
}]);
}]);
</script>
</script>
</includeonly>
</includeonly>

Revision as of 17:41, 29 February 2024

This widget allows you to add ... widget to your wiki page.

Created by [idea-sketch.com idea-sketch.com]

Using this widget

For information on how to use this widget, see ...

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Chartjs bar.