peyman gilmour
peyman gilmour

Reputation: 1218

Chart js 2.x renders the canvas invisible

I am using chartjs version 2 it works very good in all the browsers except chrome and it renders the charts invisible .When i change the size of page by chrome ,it shows the charts . Anyone can give me a hint to fix this problem ?

chrome version : 51

Upvotes: 2

Views: 1586

Answers (1)

Kian Cross
Kian Cross

Reputation: 1818

The canvas element that the chart is being rendered to must be visible. Make sure you've not set display: none to the canvas before rendering the chart.

Upvotes: 3

Related Questions