Skip to main content



      Home
Home » Archived » BIRT » Pie Chart to Bar Chart Conversion At Runtime - Using Script(Chart Type Converison at runtime using Script)
icon5.gif  Pie Chart to Bar Chart Conversion At Runtime - Using Script [message #994787] Fri, 28 December 2012 04:09 Go to next message
Eclipse UserFriend
Hi : I am facing this issue :

I have a pie chart, this works fine with lesser data, but as soon as my data size increase, the chart looks really weired, I want to convert pie-chart to a Bar chart.


Does anyone know solution for this? It will be really appriciable. index.php/fa/12832/0/
Re: Pie Chart to Bar Chart Conversion At Runtime - Using Script [message #994933 is a reply to message #994787] Fri, 28 December 2012 12:15 Go to previous messageGo to next message
Eclipse UserFriend
One thing you could do would be to make both, then hide the one you don't want to see based on the number of points.
Re: Pie Chart to Bar Chart Conversion At Runtime - Using Script [message #995152 is a reply to message #994933] Sat, 29 December 2012 02:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael, Thanks for reply, I appriciate your response, but in my case I want to use the same widget and want to change it at run time. Is it possible?
Re: Pie Chart to Bar Chart Conversion At Runtime - Using Script [message #995975 is a reply to message #995152] Mon, 31 December 2012 12:33 Go to previous messageGo to next message
Eclipse UserFriend
You could use the data engine api, in the beforeFactory method, to find out how many groups you're dealing with. Then, you could either build your chart from scratch or have two built and drop the unneeded one, based on your findings.
Re: Pie Chart to Bar Chart Conversion At Runtime - Using Script [message #1012696 is a reply to message #995975] Thu, 21 February 2013 22:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Williams, Sorry for late reply! I was dealing with some other issues, of higher priority so could not reply!

Thanks for your answer can you please give me any sample code or some sample report where Pie-Chart converts into Bar-Chart?
Need your help! Thanks again!

[Updated on: Tue, 23 April 2013 03:00] by Moderator

Re: Pie Chart to Bar Chart Conversion At Runtime - Using Script [message #1013073 is a reply to message #1012696] Fri, 22 February 2013 13:18 Go to previous message
Eclipse UserFriend
Here's an example from BIRT Exchange that shows how to use the data engine api:

BIRT Exchange DevShare - Data Engine API Example

For the issue of which chart to show, you could create a bar chart with the designer as the default chart in your report. If your check of the data shows less than x groups, you could build a pie chart from scratch and drop the bar chart:

BIRT Exchange DevShare - Add Pie Chart to Report

Or you could do the opposite. Let me know if you need more info.

[Updated on: Fri, 22 February 2013 13:19] by Moderator

Previous Topic:Skip level in TOC tree???
Next Topic:Using the BIRT Excel Emitter
Goto Forum:
  


Current Time: Sun Mar 23 05:17:35 EDT 2025

Powered by FUDForum. Page generated in 0.03580 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top