Half Pie

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
ecm
Newbie
Newbie
Posts: 2
Joined: Wed Sep 18, 2013 12:00 am

Half Pie

Post by ecm » Thu Oct 10, 2013 3:25 pm

Hi,

How can I create a half-moon or pie using the library as shown in the picture?
half-moon.gif
half-moon.gif (9.66 KiB) Viewed 9240 times
I need multiple slices on a 180 degrees pie so I'm not sure if a gauge or dial is appropriate for this.

Thanks!

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Half Pie

Post by Yeray » Thu Oct 10, 2013 3:45 pm

Hi,

Try this:

Code: Select all

pie1.setAngleSize(180);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

ecm
Newbie
Newbie
Posts: 2
Joined: Wed Sep 18, 2013 12:00 am

Re: Half Pie

Post by ecm » Fri Oct 11, 2013 1:18 am

Thanks for the help - it's working now. Can I do the same (multiple slices representing data) on a half circular gauge?

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Half Pie

Post by Yeray » Fri Oct 11, 2013 7:54 am

Hi,
ecm wrote:Can I do the same (multiple slices representing data) on a half circular gauge?
I'm not sure to understand what do you exactly mean.
You can have a half circular gauge setting the TotalAngle and DisplayTotalAngle properties:

Code: Select all

		CircularGauge circ1 = new CircularGauge(tChart1.getChart());
		circ1.setValue(10);
		circ1.setTotalAngle(180);
		circ1.setDisplayTotalAngle(180);
On the other hand, you refer to the red and green lines in the circular gauges. Maybe you would like to have more lines highlighting different sections in the gauge. I'm afraid it's not possible right now but it's on the wish list to be implemented in future releases (TJ71016736).

If you are trying to do something different to the options commented above, please try to arrange a simple example project we can run as-is to reproduce the problem here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply