# \[BUG?\] Perspective Power Chart Bug - Embr-Chart as a Replacement?

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-power-chart-bug-embr-chart-as-a-replacement/102084>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 10, 2025, 5:42am UTC](https://forum.inductiveautomation.com/t/bug-perspective-power-chart-bug-embr-chart-as-a-replacement/102084 "2025-02-10T05:42:11Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [February 12, 2025, 1:37am UTC](https://forum.inductiveautomation.com/t/bug-perspective-power-chart-bug-embr-chart-as-a-replacement/102084/34 "2025-02-12T01:37:13Z")

</div>

> [@ryan.white](#):
>
> Inspecting the result returned by `context.chart.getZoomedScaleBounds()`shows that all axis other than `x` are undefined.

Yeah, it seems like `getZoomedScaleBounds()` only returns the scales that have been zoomed. If you allow for panning and zooming on both axes then you'll have data for both `x` and `y` (and presumably `y2` and `y3` as well).

> [@ryan.white](#):
>
> I'm guessing trying to write that to a perspective property is making it unhappy.

Yup that's exactly it, you can't write `undefined` to a property. This is a good place to use JavaScript's `??` coalescing operator.

---

_[View the full topic](https://forum.inductiveautomation.com/t/bug-perspective-power-chart-bug-embr-chart-as-a-replacement/102084)._
