# Insert a calculated value into a classic chart

**URL:** <https://forum.inductiveautomation.com/t/insert-a-calculated-value-into-a-classic-chart/45891>\
**Category:** Ignition\
**Created:** [April 21, 2021, 9:17pm UTC](https://forum.inductiveautomation.com/t/insert-a-calculated-value-into-a-classic-chart/45891 "2021-04-21T21:17:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [April 26, 2021, 11:06pm UTC](https://forum.inductiveautomation.com/t/insert-a-calculated-value-into-a-classic-chart/45891/5 "2021-04-26T23:06:25Z")

</div>

Customizing the legend is non-trivial:

> [@Dynamic report chart, legend not hiding unused pens](http://forum.inductiveautomation.com/t/dynamic-report-chart-legend-not-hiding-unused-pens/44565/2):
>
> Take a look at this other post of mine about changing the legend: The trick is to implement a ‘custom’ [XYItemRenderer](https://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/renderer/xy/XYItemRenderer.html) class that allows you to provide your own arbitrary set of legend items to display.

---

_[View the full topic](https://forum.inductiveautomation.com/t/insert-a-calculated-value-into-a-classic-chart/45891)._
