Charts.js cartesian linear chart bug

UI Components for JSF
Post Reply
giorgio.primefaces
Posts: 64
Joined: 19 Apr 2011, 11:43

05 Feb 2019, 12:49

Hi all,
I think it is a bug, in the showcase, cartesian line chart is not rendered correctly, top point values are not visible (line is thinner on top as well)
is there any workaroud?

thanks

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 Feb 2019, 14:38

I don't understand what you mean. I am looking at the showcase right now and I can tell anything is wrong. Can you be more specific as to what you are claiming is a bug?

https://www.primefaces.org/showcase/ui/ ... line.xhtml
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 Feb 2019, 14:39

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

giorgio.primefaces
Posts: 64
Joined: 19 Apr 2011, 11:43

05 Feb 2019, 15:50

Image
as you can see in the screenshot above, the cartesian line chart is missing top points and has narrow lines at top
if you refresh the showcase, you'll see those two points raising from bottom and disappearing when maximum value is reached

at least that's what I get with
fedora 29
firefox 65

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 Feb 2019, 15:59

Hmm PF is using ChartJS 2.7.2 and looks like these related issues are coming from 2.8 version.

https://github.com/chartjs/Chart.js/issues/4202

https://github.com/chartjs/Chart.js/issues/5210

Look like that issue may be related to your issue?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

giorgio.primefaces
Posts: 64
Joined: 19 Apr 2011, 11:43

05 Feb 2019, 16:38

yes, I think they are related to the same problem, so if there's no workaround we should wait for next chart.js release...

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 Feb 2019, 16:39

Yep I will upgrade the JS once they release 2.8.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

giorgio.primefaces
Posts: 64
Joined: 19 Apr 2011, 11:43

05 Feb 2019, 17:08

great,
thanks!

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 Feb 2019, 20:46

Created this issue if you wanted to track it: https://github.com/primefaces/primefaces/issues/4506
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

23 Mar 2019, 18:03

Submitted a PR to update to ChartJS 2.8.0 and I verified this bug has been fixed by ChartsJS. https://github.com/primefaces/primefaces/pull/4678
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 39 guests