KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Chart.js version supported by Koolreport #3416

Open Lawrbit opened this topic on on Feb 5 - 3 comments

Lawrbit commented on Feb 5

Hi Team,

Could you please confirm the version of Chart.js supported by Koolreport? Version 2.2.1 is working for us, but when we upgrade to Chart.js version 4.4.7, the charts don't render in the report, even though the same code works fine in an HTML file.

<div style="border:1px solid #cccccc; padding:10px 5px;">
				<canvas id="myChart1" width="400" height="300"></canvas>
			</div>

<script>
    const data = {
      labels: ['Red', 'Blue', 'Yellow'],
      datasets: [{
        label: 'My First Dataset',
        data: [300, 50, 100],
        backgroundColor: [
          'rgb(255, 99, 132)', // Red
          'rgb(54, 162, 235)', // Blue
          'rgb(255, 205, 86)'  // Yellow
        ]
      }]
    };

    const config = {
      type: 'pie',
      data: data,
      options: {
        animation: {
          duration: 0 // Set animation duration to 0 to disable animation
        }
      }
    };

    const ctx = document.getElementById('myChart1').getContext('2d');
    new Chart(ctx, config);
  </script>
Bright commented on Feb 12

Version 2.9.4 of Chart.js is supported.

Lawrbit commented on Feb 13

Hi,

Thank you for the confirmation. Could you please let me know if there are any plans for supporting the latest version of the Chart.js?

Bright commented on Feb 13

Yes, it will be supported in the future.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Export