You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
I'd be very happy to help. I'm trying to integrate it into my project and so far I get:
core.js:63Uncaught TypeError: (intermediate value)[chartType] is not a function
I guess I'm using it wrong: I cloned the v2 repo and temporarily replaced it in my node_modules directory, chart.js is updated to version 2.0.0. Can you please point me to what I'm doing wrong so I can make all required tests?
Thanks
Reacted by Chandu Tennety, Andy Noelker, Sercan Inaler, Giuseppe Bonfa, Giuseppe Massaro, Giovanni Caporaletti, Henry, aoiu, Danny, Doug Molineux and 1 more
I noticed that when I upgraded, the fillColor for a line was no longer honored. It is just a default grey. Any insights on this? I can't seem to find and deprecations in the Chart.js upgrade notes.
Another issue, the label in the datasets key does not update in the canvas when it is changed.
EDIT: What I mean by label can be shown in the Line chart. The switches at the top (I suppose they are called legends?), do not correlate with the current label.
@ianks did everything work out of the box after the upgrade? Because I'm still having the same issue as past week. Can I ask you how you've made it work?
What's the progress on this? v2.1.0 introduced plugins for ChartJS and I would really like to use it. Unfortunately, I've looked around the chartjs-v2 branch of this project and I can't find the version number of ChartJS that it references.
That being said, since the last commit was a while ago, I'm going to assume that this project hasn't caught up to 2.1.x yet. Am I correct?
@austinpray should we open a PR for chartjs-v2 branch against master as a way of tracking all the changes/things that need to be done for 2.0? I have been using that branch heavily in production with no issues, and I am sure others have as well. I propose that we get the ball rollings by making a PR and resolving any outstanding issues there.
1.0.0: this branch tracks chartjs 1.0.0 and is basically the library as it exists. No breaking changes allowed.
2.0.0: this branch tracks chartjs 2.0.0 and is the chartjs-v2 branch. Tries to stay as API compatible as possible with 1.0.0. Maintenance mode. Eventually sunset this.
3.0.0: ES6 rewrite @contra and I are working on. Overhaul the repo to make it more testable, fix bugs. This is the version that we continue to support down the road.
Create a branch v0.7.x-stable branched off of current master; support bugfixes, etc. for chart.js 1.0
Merge all of chart.js 2.0 relevant things into master
Publish a package version of something like 2.0.0-beta1, or something
Questions
how do we want to version things, i.e. do we want to follow chartjs version, or not? Personally, I think we should pick a version number which makes it obvious it does not reflect version of chart.js. like maybe 4.0.0 or something ridiculous, so users do not get confused with react-chartjs versioning vs chartjs versioning.
@austinpray Offtopic: Would you be interested in converting to codebase to Typescript at all? It can be used as an es6 compiler at first, then slowly we can add types to reduce the possibility of introducing bugs. I would be more than willing to use my experience to get the build system working so there are no pain points.
how do we want to version things, i.e. do we want to follow chartjs version, or not? Personally, I think we should pick a version number which makes it obvious it does not reflect version of chart.js. like maybe 4.0.0 or something ridiculous, so users do not get confused with react-chartjs versioning vs chartjs versioning.
I understand that this could cause a bit of confusion, but ultimately this will work itself out. It's going to boil down to having a table in the readme:
Activity
RamonBeast commentedon Mar 7, 2016
+1
flgarrid commentedon Mar 8, 2016
+1
jbmeslin commentedon Mar 14, 2016
Every body can start a new branch
RamonBeast commentedon Mar 23, 2016
yep I guess this repo is deadaustinpray commentedon Mar 27, 2016
Got a PR here: #87
Take the initiative and help test this PR out so we can get it merged.
austinpray commentedon Mar 27, 2016
Here's the plan:
austinpray commentedon Apr 6, 2016
The faster you guys test https://github.com/jhudson8/react-chartjs/tree/chartjs-v2 the faster this can get consolidated into a 2.0 release
RamonBeast commentedon Apr 11, 2016
I'd be very happy to help. I'm trying to integrate it into my project and so far I get:
core.js:63Uncaught TypeError: (intermediate value)[chartType] is not a functionI guess I'm using it wrong: I cloned the v2 repo and temporarily replaced it in my node_modules directory, chart.js is updated to version 2.0.0. Can you please point me to what I'm doing wrong so I can make all required tests?
Thanks
leighghunt commentedon Apr 14, 2016
@RamonBeast I think someone else encountered the same issue - see #102.
Interested to see resolution to this myself.
ianks commentedon Apr 15, 2016
I noticed that when I upgraded, the fillColor for a line was no longer honored. It is just a default grey. Any insights on this? I can't seem to find and deprecations in the Chart.js upgrade notes.
ianks commentedon Apr 16, 2016
Another issue, the
labelin thedatasetskey does not update in the canvas when it is changed.EDIT: What I mean by label can be shown in the Line chart. The switches at the top (I suppose they are called legends?), do not correlate with the current label.
RamonBeast commentedon Apr 19, 2016
@ianks did everything work out of the box after the upgrade? Because I'm still having the same issue as past week. Can I ask you how you've made it work?
ianks commentedon Apr 19, 2016
@RamonBeast Things worked, but there were also the issues that I described above. Did you make sure to update ChartJS to 2.0.0?
9 remaining items
RezaRahmati commentedon Jun 15, 2016
@stevewillard Thanks, it works now
rublev commentedon Jun 24, 2016
Do I have to install chart.js alongside the chartjs-v2 branch? If so, how do I install 2.0.0 of chartjs? I tried `npm i -D chartjs@2.0.0" but got:
EDIT: Nevermind, it's chart.js not chartjs. Somehow got it in my head that I couldn't allow periods in module names.
ledsun commentedon Jun 25, 2016
The
chartjsis a other npm package.Please try
npm i -D chart.jsadrianmcli commentedon Jul 13, 2016
What's the progress on this? v2.1.0 introduced plugins for ChartJS and I would really like to use it. Unfortunately, I've looked around the
chartjs-v2branch of this project and I can't find the version number of ChartJS that it references.That being said, since the last commit was a while ago, I'm going to assume that this project hasn't caught up to 2.1.x yet. Am I correct?
ianks commentedon Jul 13, 2016
We may need to consider forking this repo to get it to 2. There doesnt seem to be much interest in the maintainers for getting us up to 2.
austinpray commentedon Jul 13, 2016
@ianks plenty of interest. Pull requests accepted.
ianks commentedon Jul 13, 2016
@austinpray should we open a PR for chartjs-v2 branch against master as a way of tracking all the changes/things that need to be done for 2.0? I have been using that branch heavily in production with no issues, and I am sure others have as well. I propose that we get the ball rollings by making a PR and resolving any outstanding issues there.
ledsun commentedon Jul 14, 2016
I think there is 2 options.
chartjs-v2branch and publish thev2.0.0-betanpm package, nowchartjs-v2branch work with the Chart.js v2I think the 1st option is better.
Reason 1
The package.json of user applications will be more simple.
I do not want to write:
or
If you do not want to update the latest version of the npm repository, you can use
betatag.Publish Beta Versions of NPM Modules (Example)
Reason 2
Test needs long time.
When the 2nd option is selected, the goal of test should be defined, I think.
Because test is endless.
For example, I am writing samples of
react-chartjswith theChart.js v2.ledsun/react-chartjs-example: react-chartjs sample with Chart.js v2
This will not be completed for a while.
Reason 3
The Chart.js is actively developed. v2.2.0-rc.1 is released today.
I am afraid of that the
chartjs-v2branch will not completed forever.stevewillard commentedon Jul 14, 2016
Agreed. Just merge it in and publish a beta version, otherwise this package will never progress.
austinpray commentedon Jul 14, 2016
So I am down for:
ianks commentedon Jul 14, 2016
My thoughts:
v0.7.x-stablebranched off of current master; support bugfixes, etc. for chart.js 1.02.0.0-beta1, or somethingQuestions
how do we want to version things, i.e. do we want to follow chartjs version, or not? Personally, I think we should pick a version number which makes it obvious it does not reflect version of chart.js. like maybe 4.0.0 or something ridiculous, so users do not get confused with react-chartjs versioning vs chartjs versioning.
ianks commentedon Jul 14, 2016
@austinpray Offtopic: Would you be interested in converting to codebase to Typescript at all? It can be used as an es6 compiler at first, then slowly we can add types to reduce the possibility of introducing bugs. I would be more than willing to use my experience to get the build system working so there are no pain points.
austinpray commentedon Jul 14, 2016
I understand that this could cause a bit of confusion, but ultimately this will work itself out. It's going to boil down to having a table in the readme:
when or if chartjs v3 comes out:
Assuming we are at version 5 when v3 comes out. 1.x, and 5.x should get react compatibility updates and small bugfixes and that's about it.
merlinstardust commentedon Jul 31, 2016
As part of the upgrade, chartjs should become a dependency of this package. This would prevent someone from installing the wrong version.
What's the current reasoning behind having devs install chartjs separately?
hassankhan commentedon Aug 14, 2016
Hi, is there any update on releasing version 2? I couldn't get it to work (using the v2 branch) and ended up writing a simple wrapper myself: