# How to embed a power-chart into a view most efficiently?

**URL:** <https://forum.inductiveautomation.com/t/how-to-embed-a-power-chart-into-a-view-most-efficiently/69998>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 17, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/how-to-embed-a-power-chart-into-a-view-most-efficiently/69998 "2023-02-17T14:31:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Neves-Charge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/henry_neves-charge/32/41949_2.png) [@Henry\_Neves-Charge](https://forum.inductiveautomation.com/u/Henry_Neves-Charge)\
**Post date:** [February 17, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/how-to-embed-a-power-chart-into-a-view-most-efficiently/69998/1 "2023-02-17T14:31:31Z")

</div>

Hello, I have a main dashboard view which consists of three columns which shows live data. We want the ability to look at a historical view of that data. At the moment the way I'm doing this is by embedding three views with power-charts in the page and then hiding them with CSS. Users can then expand and collapse the views to show the charts.

This isn't very efficient as the charts are still loading in the background and hitting the page's performance.

Is there a way to inject / embed a power-chart after a user has performed an action (clicked a button)? I'd then want to remove the chart from the view when the user has finished looking at it.

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [February 17, 2023, 3:57pm UTC](https://forum.inductiveautomation.com/t/how-to-embed-a-power-chart-into-a-view-most-efficiently/69998/2 "2023-02-17T15:57:22Z")

</div>

Change the path of the embedded view to an empty string when you don't need it, and/or set display to none. That should get you there.

---

<div class="post-metadata">

**Author:** ![Henry\_Neves-Charge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/henry_neves-charge/32/41949_2.png) [@Henry\_Neves-Charge](https://forum.inductiveautomation.com/u/Henry_Neves-Charge)\
**Post date:** [February 17, 2023, 4:08pm UTC](https://forum.inductiveautomation.com/t/how-to-embed-a-power-chart-into-a-view-most-efficiently/69998/3 "2023-02-17T16:08:10Z")

</div>

Seems to work a charm - thank you!
