From Dark and Darker Wiki

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div>
<div>
   <canvas id="<!--{$id|escape:'html'}-->"></canvas>
   <canvas id="<!--{$uniqueId|escape:'html'}-->"></canvas>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>


<script>
<script>
    
    
   var data = JSON.parse('<!--{$data|escape:'quotes'}-->')
   var data = JSON.parse('<!--{$data|escape:'quotes'}-->')
  var label = '<!--{$label|escape:'quotes'}-->';
   var color = '<!--{$color|escape:'quotes'}-->';
   var color = '<!--{$color|escape:'quotes'}-->';
   var backgroundColor = '<!--{$backgroundColor|escape:'quotes'}-->';
   var backgroundColor = '<!--{$backgroundColor|escape:'quotes'}-->';
Line 55: Line 52:
         {
         {
           data: data,
           data: data,
          label: label,
           borderColor: color,
           borderColor: color,
           backgroundColor: color,
           backgroundColor: color,

Revision as of 06:22, 7 January 2023