Page 1 of 1

gchart reference error

Posted: 02 Feb 2017, 14:18
by rockingaround
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.

Re: gchart reference error

Posted: 02 Feb 2017, 14:41
by Melloware
What version of Extensions are you using?

Re: gchart reference error

Posted: 02 Feb 2017, 15:00
by rockingaround
4.0.0

Re: gchart reference error

Posted: 02 Feb 2017, 15:07
by Melloware
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?

Re: gchart reference error

Posted: 02 Feb 2017, 15:13
by rockingaround
Current PrimeFaces version is 5.3. I have a working extension function in my project, but can't seem to make gcharts work

Re: gchart reference error

Posted: 02 Feb 2017, 17:12
by Melloware
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?

Re: gchart reference error

Posted: 07 Feb 2017, 15:32
by rockingaround
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 ?

Re: gchart reference error

Posted: 07 Feb 2017, 15:45
by Melloware
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

Re: gchart reference error

Posted: 10 Feb 2017, 03:11
by Melloware
I created this: https://github.com/primefaces-extension ... issues/441

And it will be included in PFE 6.1.