Horizonal Bar Chart Legend Problem

UI Components for JSF
Post Reply
tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

13 May 2019, 06:14

https://www.primefaces.org/showcase/ui/chart/bar.xhtml

If you click on the legend for HORIZONTAL bar chart; it toggles the "other" legend in the key.

It does the same in my project.
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

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

13 May 2019, 13:43

You should probably switch to use the new ChartsJS and not the old Charts.

https://www.primefaces.org/showcase/ui/ ... /bar.xhtml

However that being said there is no Horizontal option yet even though CHartsJS supports it: https://www.chartjs.org/docs/latest/charts/bar.html

I submitted this ticket and will submit a a PR: https://github.com/primefaces/primefaces/issues/4800
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

13 May 2019, 13:56

Actually check it out Horizontal ChartsJS already exists in PF: https://www.primefaces.org/showcase/ui/ ... hbar.xhtml

That should fix you up.
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

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

13 May 2019, 20:23

Thx for your prompt response.
I didnt know that ChartJS was the preferred option (and saw nothing in the demo screens suggesting I use the "other" charts).
I will use JS from now on; buit with limited time to get this piece of work done and a number of issues and enhancements to work though I have to leave it "as is" for now.
IT is so great to have Primefaces; it makes me so productive!!!
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

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

13 May 2019, 20:42

No problem. yeah those old JQPlot based charts are buggy and JqPlot seems to be abandoned where ChartsJS is a very active open source project and also looks really nice!
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

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

13 May 2019, 23:22

General Error
SQL ERROR [ mysqli ]

Incorrect string value: '\xE2\x80\x9Cnot...' for column 'post_text' at row 1 [1366]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
Please notify the board administrator or webmaster: noreply@primetek.com.tr
Powered by phpBB® Forum Software © phpBB Limited
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

13 May 2019, 23:23

What i was trying to say was shame there was no - use the other charts- note...
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests