gchart reference error

Community Driven Extensions Project
Post Reply
rockingaround
Posts: 9
Joined: 27 Dec 2016, 11:14

02 Feb 2017, 14:18

Hello,
I'm trying to try to implement a gchart according to the examples on http://www.primefaces.org/showcase-ext/ ... ltiple.jsf but the page seems empty and the browser has this error
ReferenceError: PrimeFacesExt is not defined
I've read online that primefaces tags should be used at least once in the page but since

Code: Select all

<pe:gChart  
    value="#{multipleSeriesGChartController.chart}"  
    title="Company Performance"/>  
              
is a primefaces tag I couldn't actually get the problem. Can you help?
Thanks in advance.

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

02 Feb 2017, 14:41

What version of Extensions are you using?
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

rockingaround
Posts: 9
Joined: 27 Dec 2016, 11:14

02 Feb 2017, 15:00

4.0.0

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

02 Feb 2017, 15:07

Some suggestions...

PFE 4.0.0 can only be used with PF 4.X branch. Are you using it with PrimeFaces 4.X?

Make sure you don't have multiple PF Extensions JARs in your path?
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

rockingaround
Posts: 9
Joined: 27 Dec 2016, 11:14

02 Feb 2017, 15:13

Current PrimeFaces version is 5.3. I have a working extension function in my project, but can't seem to make gcharts work

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

02 Feb 2017, 17:12

Well you have everything correct as far as versions.

I would say try PF 6.0 with PFE6.0.0 to see if the issue is already fixed?
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

rockingaround
Posts: 9
Joined: 27 Dec 2016, 11:14

07 Feb 2017, 15:32

Yes the issue is fixed now. Thank you. Another question about gchart. Does the gchart library support line charts like, https://goo.gl/images/xw1zry ?

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

07 Feb 2017, 15:45

I am looking at the code and currently it looks like it only supports these charts...

Code: Select all

	PIE("PieChart"),
	AREA("AreaChart"),
	BAR("BarChart"),
	GEO("GeoChart"),
	ORGANIZATIONAL("OrgChart"),
	COLUMN("ColumnChart");
You can use PF Charts if you need a line chart?

It looks like Google does support Line Charts but the current PFE component does not support them.

https://developers.google.com/chart/int ... cs/gallery
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: 3716
Joined: 22 Apr 2013, 15:48

10 Feb 2017, 03:11

I created this: https://github.com/primefaces-extension ... issues/441

And it will be included in PFE 6.1.
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 “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests