ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Gauge Chart
Posted by Tom on Oct-09-2018 20:39
Attachments:
I am using a gauge chart to mimic some of the look and feel I see in other products dashboards.  One is kind of a half circle doughnut chart depicting an overall percentage.

Is there a way to get rid of the little circle that would be the pivot point of the needle on a gauge chart.  See the attached image, the red arrow I added to show you the little circle I would like to hide.
No_Needle_Gauge_Chart.png

  Re: Gauge Chart
Posted by Peter Kwan on Oct-10-2018 00:37
Hi Tom,

You can use AngularMeter.setCap to set the circle (called the "cap" in ChartDirector terminology) to transparent.

https://www.advsofteng.com/doc/cdnet.htm#AngularMeter.setCap.htm

For example, in C#/Java:

m.setCap(1, Chart.Transaparent, Chart.Transparent);

(Note: the above is in C#/Java. In C++, the transparent is Chart::Transparent. If you need the syntax is some other languages, please let me know.)

Regards
Peter Kwan

  Re: Gauge Chart
Posted by Tom on Oct-10-2018 00:47
Thanks You.  Such a simple solution, not sure why I did not think of that.  Also setting it to the same color as the background worked.

We have been using this product for many many years and have yet to find anything it can't do.

tom