Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
Dynamically resizing ChartText Labels based on Column Width
posted

Hoping for advice from the IG chart gurus...

Desired Result: I need to truncate ChartText labels (based on ITEM_LABEL) to fit within the column bounds of a 2d stacked column chart.

Progress so far: After searching the docs & boards, I've successfully implemented a custom class that implements IRenderLabel and I can truncate the labels based on a fixed size or number of characters.

Problem: How can I get a reference to the rectangle element that the label is being drawn within so that my custom IRenderLabel class can truncate the text to fit within the column. (The column width is subject to change as the form is resized, so a fixed width truncation would not allow long lables to to be displayed in their entirity once the chart is wide enough to display them.)

 I appreciate your help and insight.

 At your service,

Jeff

Parents Reply Children
No Data