# \[SOLVED\] Is there a property available to modify the width of the PieChart in ring mode?

**URL:** <https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687>\
**Category:** Ignition\
**Tags:** vision, ignition81, scripting\
**Created:** [March 1, 2022, 9:41pm UTC](https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687 "2022-03-01T21:41:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [March 1, 2022, 9:41pm UTC](https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687/1 "2022-03-01T21:41:02Z")

</div>

I have this code running on a PieChart.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/0/103aae260386a2bfdcc771f3eff654b33b6aefa1.png)

It makes my PieChart look like this:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/6/b6bbccd4e7d70647558c21ea13c3e97a0ae9049f.png)

Is there a similar property in java that allows me to modify the thickness of the ring? Is there a way to view all properties available to me?

I learned about this recently from this link:

> **[Tips for Using Python in Ignition SCADA Software](https://www.vertech.com/blog/tips-for-using-python-in-ignition-scada)**
>
> Tips for using the Jython implementation of Python with Inductive Automation Ignition SCADA software.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [March 1, 2022, 9:57pm UTC](https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687/2 "2022-03-01T21:57:22Z")

</div>

I you trying to make the ring “thicker” i.e. increase the stroke, or increase the size of the chart component to make it larger as a whole?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 1, 2022, 11:06pm UTC](https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687/3 "2022-03-01T23:06:07Z")

</div>

The pie chart in ring mode is a [`RingPlot`](https://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/RingPlot.html).

The method you want is [`setSectionDepth`](https://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/RingPlot.html#setSectionDepth-double-), where 0.0 is no rings and 1.0 is a pie chart.

As a general practice when dealing with objects in Ignition (especially Vision), start with `print type(object)`, and, given the class name, see if you can find a javadoc, either from IA or whatever third party we’re using. @pturmel also has an `inspect.py` script (posted on the forum) that has an `introspect` function that’s immensely helpful.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 1, 2022, 11:24pm UTC](https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687/4 "2022-03-01T23:24:09Z")

</div>

I’m constantly amazed at how durable that sucker has been. It is older than Ignition–first used to poke under the hood with FactoryPMI. (Ah, the good old days!)

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [March 2, 2022, 1:37pm UTC](https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687/5 "2022-03-02T13:37:37Z")

</div>

Thanks!

1. I was able to `print type(object)`, google it, and get to [RingPlot (JFreeChart 1.5.0 API)](https://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/RingPlot.html).

2. Is this the `inspect.py` you are talking about? [finding-all-available-methods](https://forum.inductiveautomation.com/t/finding-all-available-methods-from-a-component/9670/8)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 2, 2022, 3:58pm UTC](https://forum.inductiveautomation.com/t/solved-is-there-a-property-available-to-modify-the-width-of-the-piechart-in-ring-mode/56687/6 "2022-03-02T15:58:56Z")

</div>

Yes, but that might be out of date. The latest version is always here:

[https://www.automation-pros.com/ignition/inspect.py](https://www.automation-pros.com/ignition/inspect.py)
