Widget:Chartjs doughnut: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tags: Reverted 2017 source edit |
No edit summary Tags: Reverted 2017 source edit |
||
| Line 9: | Line 9: | ||
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''. | To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''. | ||
</noinclude> | </noinclude> | ||
Test <!--{counter}--> | Test <!--{counter}--> | ||
<!--{counter name="counterDonut" assign="countDonut"}--> | <!--{counter name="counterDonut" assign="countDonut"}--> | ||
Revision as of 20:12, 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 doughnut.
Test
<canvas id=""></canvas>
<script> // defer script execution until the mediawiki loader and jQuery are available RLQ.push([[], function () { mw.loader.using('ext.iswiki.chartjs_doughnut').then(function(){ const ctx = document.getElementById(); drawDonutChart(ctx); }); }]); </script>