Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
natanael berlian
how to make gauge or speedometer chart portlet
April 18, 2013 2:38 AM
Answer

natanael berlian

Rank: New Member

Posts: 14

Join Date: March 25, 2013

Recent Posts

hi all,
I've project to make speedometer chart. Is that anyone has been make it?

I've try to make with jfreechart to make bar chart or just pie chart. I don't know how to make sppedometer chart with jfreechart.

thanks
Victor Zorin
RE: how to make gauge or speedometer chart portlet
April 18, 2013 2:47 AM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1176

Join Date: April 14, 2008

Recent Posts

You can have a look at this demo of Meter Chart Portlet.
Unfortunately we do not offer these portlets for free downloading yet, did not have enough time to put all licensing in place and they are only supplied with custom projects. All these BI Charts are using jfreechart library...
natanael berlian
RE: how to make gauge or speedometer chart portlet
April 18, 2013 3:16 AM
Answer

natanael berlian

Rank: New Member

Posts: 14

Join Date: March 25, 2013

Recent Posts

Victor Zorin:
You can have a look at this demo of Meter Chart Portlet.
Unfortunately we do not offer these portlets for free downloading yet, did not have enough time to put all licensing in place and they are only supplied with custom projects. All these BI Charts are using jfreechart library...



thanks but I want to make it project. Does anyone want to help me?
James Falkner
RE: how to make gauge or speedometer chart portlet
April 18, 2013 7:01 AM
Answer

James Falkner

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1333

Join Date: September 17, 2010

Recent Posts

natanael berlian:
Victor Zorin:
You can have a look at this demo of Meter Chart Portlet.
Unfortunately we do not offer these portlets for free downloading yet, did not have enough time to put all licensing in place and they are only supplied with custom projects. All these BI Charts are using jfreechart library...



thanks but I want to make it project. Does anyone want to help me?



How about Google Charts? There's a pretty simple Gauge example which uses javascript. What did you want to measure with the Gauge?
David H Nebinger
RE: how to make gauge or speedometer chart portlet
April 18, 2013 7:39 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8554

Join Date: September 1, 2006

Recent Posts

Highcharts has some guages...
Mohamed Faisal
RE: how to make gauge or speedometer chart portlet
April 14, 2015 12:07 AM
Answer

Mohamed Faisal

Rank: Junior Member

Posts: 62

Join Date: August 11, 2009

Recent Posts

David H Nebinger:
Highcharts has some guages...


I have a json response like
{"error":"false","data":{"title":"speedometer","units":"points","values":[{"label":"Label1","value":"20"},{"label":"Label2","value":"80"},{"label":"Label3","value":"60"}]}}

I need to implement speedometer using highchart. Please let me know how to implement.

Regards,
Faisal
Jan Geißler
RE: how to make gauge or speedometer chart portlet
April 14, 2015 12:12 AM
Answer

Jan Geißler

Community Moderator

Rank: Liferay Master

Posts: 546

Join Date: July 5, 2011

Recent Posts

You implement it in the following way:
Look at the data you have got.
Look at the manual/API of highchart.
Look at the demo.
Play around with the demo (there is a jfiddle button) to get an idea how it works.
http://www.highcharts.com/demo/gauge-speedometer

I will not give you any code, as there are tons of examples, and there will be no learning if you just copy paste code.
Mohamed Faisal
RE: how to make gauge or speedometer chart portlet
April 14, 2015 1:47 AM
Answer

Mohamed Faisal

Rank: Junior Member

Posts: 62

Join Date: August 11, 2009

Recent Posts

Hi Jan Geißler,

Thank you for reply.
I have done pie and bar chart with dynamic data. But I am not able to do speedometer with json response.
could you please elaborate how to achieve this.

Regards,
Faisal
Jan Geißler
RE: how to make gauge or speedometer chart portlet
April 14, 2015 4:41 AM
Answer

Jan Geißler

Community Moderator

Rank: Liferay Master

Posts: 546

Join Date: July 5, 2011

Recent Posts

Looks like your JSON response does not have the right format for the speedometer, so you would have to transform it to a format, the Speedometer can actually use.
Mohamed Faisal
RE: how to make gauge or speedometer chart portlet
April 14, 2015 5:06 AM
Answer

Mohamed Faisal

Rank: Junior Member

Posts: 62

Join Date: August 11, 2009

Recent Posts

Thanks, will check this.