chartjs-plugin-streaming icon indicating copy to clipboard operation
chartjs-plugin-streaming copied to clipboard

Plans to update for ChartJS 4.x?

Open oasjohn opened this issue 2 years ago • 11 comments

Are there any plans to update so we don't keep seeing the warning in install that ChartJS 3.0 dependency is not found?

It works with 4.x as far as I can tell, and using --force on the install works, but it would make me feel more comfortable if this plugin was officially supporting 4.x. :)

oasjohn avatar Feb 24 '23 17:02 oasjohn

Any updates on this?

oasjohn avatar Mar 20 '23 22:03 oasjohn

On another note, if installing with npm with the following package.json

{
  "name": "chartjs-example",
  "version": "1.0.0",
  "license": "MIT",
  "scripts": {
    "dev": "parcel src/index.html",
    "build": "parcel build src/index.html"
  },
  "devDependencies": {
    "parcel": "^2.6.2"
  },
  "dependencies": {
    "@cubejs-client/core": "^0.32.9",
    "chart.js": "^3.0.0",
    "chartjs-plugin-streaming": "^2.0.0"
  }
}

You have

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/chart.js
npm ERR!   chart.js@"^4.2.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer chart.js@"^3.0.0" from [email protected]
npm ERR! node_modules/chartjs-plugin-streaming
npm ERR!   chartjs-plugin-streaming@"^2.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

NicoCaldo avatar Mar 22 '23 15:03 NicoCaldo

Bumping this issue, I am using v4.2.1 of chart.js and cannot pass build process without using force, which isnt ok for production. Please provide timeline for this issue

"chart.js": "^4.2.1",
"chartjs-adapter-moment": "^1.0.1",
"chartjs-plugin-streaming": "^2.0.0",
"moment": "^2.29.4",

npm ERR! code ERESOLVE

npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/chart.js npm ERR! chart.js@"^4.2.1" from the root project npm ERR! peer chart.js@">=3.0.0" from [email protected] npm ERR! node_modules/chartjs-adapter-moment npm ERR! chartjs-adapter-moment@"^1.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer chart.js@"^3.0.0" from [email protected] npm ERR! node_modules/chartjs-plugin-streaming npm ERR! chartjs-plugin-streaming@"^2.0.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/chart.js npm ERR! peer chart.js@"^3.0.0" from [email protected] npm ERR! node_modules/chartjs-plugin-streaming npm ERR! chartjs-plugin-streaming@"^2.0.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR!

BryceSimtars avatar May 03 '23 02:05 BryceSimtars

Same. would love to see this updated for 4.x. Thanks!

brettelliot avatar May 16 '23 16:05 brettelliot

I am waiting for the next update of this package. It would be great to be able to use it in ChartJS 4.x environment. Thanks. :)

robotpilot avatar May 31 '23 23:05 robotpilot

Is no one maintaining this repo any more? If anyone has a newer (and maintained) alternative, I'd be happy to switch.

oasjohn avatar Sep 29 '23 16:09 oasjohn

Bump??

oasjohn avatar Oct 17 '23 19:10 oasjohn

FYI: I found this forked repo for Chart.js V4.x , however I am unsure if it's legit or anything. Just wanted to let you guys know, will now try it myself.

@oasjohn ;)

MiriamJo avatar Oct 20 '23 11:10 MiriamJo

Bump!

godind avatar Mar 02 '24 18:03 godind

It would really be nice to have an update for this. I know it's on personal time!!! Thank you1

godind avatar Mar 04 '24 01:03 godind

thanks @MiriamJo, I've just successfully upgraded an Angular 17 project to use chart.js@4, switching over to @robloche/chartjs-plugin-streaming@3 at the same time.

I was about to check this one in "useful forks" when I saw your message, I appreciate you saving me a bit of a search. :)

andregreeff avatar Mar 07 '24 13:03 andregreeff