question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chart.js not not render

See original GitHub issue

Hello, I have installed ReLaXed on Mac Os and Debian 9. nodeJS version 8.11.2 a directory structure is ep.pug styles.scss diagrams pie.chart.js

in chart.js is

{
  type: 'pie',
  data: {
    datasets: [{
      data: [10, 20, 30],
      backgroundColor:["#db7575", "#dbc575", "#75b0db"]
    }],
    labels: ['Normal', 'Osteopenia', 'Osteoporosis']
  },
  options: {
    width:500,
    height:500,
    devicePixelRatio: 3,
    legend: {
      position: 'bottom'
    }
  }
};

compilation works well no errors, pdf is creating but an image from chart.js no. Any suggests?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Zulkocommented, Jun 6, 2018

Just a note that this is fixed in the repo for sure (there is now a test for it). The next release will also allow to directly generate the figure with:

relaxed pie.chart.js
0reactions
Zulkocommented, Jun 5, 2018

Sorry for the broken feature, while I believe I fixed it on Github I want to have the plugin system ready before the next release so it is going to take a bit more time (95% chances before the end of the week).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chartjs not rendering chart and no error thrown - Stack Overflow
The issue is, you are using ChartJS v1, but are constructing the chart as it is for ChartJS v2. You should be using...
Read more >
[SOLVED] Chart.js not rendering on editor X?? | Velo by Wix
I've been struggling for a week to get Chart.js to render using my data, I replicated the Chart.js example ...
Read more >
Why is Chart.js not rendering? Error: Uncaught ReferenceError
I am trying to implement chart.js in my django project, and I am starting with the example graph used on the chart.js website,...
Read more >
Responsive Charts - Chart.js
When it comes to changing the chart size based on the window size, a major limitation is that the canvas render size (...
Read more >
Not rendered charts after update to 3.5 · Issue #9515 - GitHub
Hey, i recently update my project to ChartJs version 3.5 from 3.4.1. My issue is that the most of the charts are not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found