reactchartjs Github contribution chart
reactchartjs Github Stats
reactchartjs Most Used Languages

Activity

29 Sep 2022

Connorlogin

started

Started On 29 Sep 2022 at 05:40:58

Ummeruman786

React components for Chart.js, the most popular charting library

Forked On 29 Sep 2022 at 04:26:01

Audreyde

started

Started On 28 Sep 2022 at 08:33:56

Jasonart0

React components for Chart.js, the most popular charting library

Forked On 28 Sep 2022 at 02:56:06

Awsomesroka

[Bug]: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused.

Would you like to work on a fix?

  • [ ] Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Getting this error after upgrading to new version.

Reproduction

hmm

chart.js version

3.7.1

react-chartjs-2 version

4.1.0

Possible solution

No response

Forked On 28 Sep 2022 at 11:54:48

Awsomesroka

Hi,

After upgrade to the newest version and adding ref to the Chart tag all works good, that means there is no more error in component.

Thx, Ola


From: Dan Onoshko @.> Sent: Wednesday, September 28, 2022 1:50:30 PM To: reactchartjs/react-chartjs-2 @.> Cc: Aleksandra Sroka @.>; Mention @.> Subject: Re: [reactchartjs/react-chartjs-2] [Bug]: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused. (Issue #1037)

Hi @dinaAlsaidhttps://github.com/dinaAlsaid @HernanGHhttps://github.com/HernanGH ! We've had no luck trying to reproduce the issue. Would you please fork this codesandboxhttps://codesandbox.io/s/github/reactchartjs/react-chartjs-2/tree/master/sandboxes/chart/ref?from-embed and replicate it?

@jefelewishttps://github.com/jefelewis Is it the reproduction of the issue? Your example is perfectly working: https://codesandbox.io/s/jolly-pateu-wiuvn1?file=/App.tsx

— Reply to this email directly, view it on GitHubhttps://github.com/reactchartjs/react-chartjs-2/issues/1037#issuecomment-1260789673, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARXAYVGCTEW4JJIYY34QHK3WAQWINANCNFSM5S4EOZPQ. You are receiving this because you were mentioned.Message ID: @.***>

Commented On 28 Sep 2022 at 11:54:48
Issue Comment

Dangreen

[Bug]: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused.

Would you like to work on a fix?

  • [ ] Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Getting this error after upgrading to new version.

Reproduction

hmm

chart.js version

3.7.1

react-chartjs-2 version

4.1.0

Possible solution

No response

Forked On 28 Sep 2022 at 11:50:19

Dangreen

Hi @dinaAlsaid @HernanGH ! We've had no luck trying to reproduce the issue. Would you please fork this codesandbox and replicate it?

@jefelewis Is it the reproduction of the issue? Your example is perfectly working: https://codesandbox.io/s/jolly-pateu-wiuvn1?file=/App.tsx

Commented On 28 Sep 2022 at 11:50:19

Itsmejasbirsingh

[Bug]:

Would you like to work on a fix?

  • [ ] Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

I image_2022_09_28T07_27_27_874Z am getting a weird result when resizing the desktop screen

Reproduction

issue arises when resizing the screen

chart.js version

2.9.3

react-chartjs-2 version

2.9.0

Possible solution

No response

Forked On 28 Sep 2022 at 10:36:47

Itsmejasbirsingh

Adding position relative works for me.

Commented On 28 Sep 2022 at 10:36:47

AndreGM

started

Started On 28 Sep 2022 at 02:35:55

Renovate

chore(deps): update dependency typescript to v4.8.4

Pushed On 27 Sep 2022 at 10:48:40

Leephan2k1

started

Started On 27 Sep 2022 at 01:51:11

JellyZero

started

Started On 27 Sep 2022 at 04:20:35

Milah3

started

Started On 26 Sep 2022 at 11:34:50

Stefanc23

started

Started On 26 Sep 2022 at 03:27:23

Efeataroglu

started

Started On 26 Sep 2022 at 02:30:28

Pixelao

started

Started On 26 Sep 2022 at 10:27:33

1912Abhishek

React components for Chart.js, the most popular charting library

Forked On 26 Sep 2022 at 09:21:02

Shota-kamezawa

started

Started On 26 Sep 2022 at 05:07:13

Endrekrohn

started

Started On 25 Sep 2022 at 07:06:43

CatherineValdez

React components for Chart.js, the most popular charting library

Forked On 25 Sep 2022 at 06:36:50

Dalakatt

started

Started On 24 Sep 2022 at 08:18:21

SameerDhumal95

React components for Chart.js, the most popular charting library

Forked On 24 Sep 2022 at 07:45:41
Issue Comment

Johnmiko

Adjust bar thickness of individual bars

<Bar data={ this.props.data } height={ 400 } width={ 400 } options={{ maintainAspectRatio: false, layout: { padding: { left: 10, right: 10, top: 0, bottom: 0 } }, scales: { xAxes: [ { ticks: { autoSkip: false }, barPercentage: 0.7 } ], yAxes: [ { ticks: { beginAtZero: true, max: 100 } } ] } }}

Forked On 23 Sep 2022 at 06:14:55

Johnmiko

@glorenzen , did you figure it out? Not clear to me from reading the documentation what to do

Commented On 23 Sep 2022 at 06:14:55

Dakend

started

Started On 23 Sep 2022 at 05:40:56

Charlie2327

React components for Chart.js, the most popular charting library

Forked On 23 Sep 2022 at 05:30:56

Nio-p

started

Started On 23 Sep 2022 at 02:58:44

Dinhphu28

started

Started On 23 Sep 2022 at 08:18:04

AungSoeKyaw00s

started

Started On 23 Sep 2022 at 05:39:38