Export Perspective View using a script


I have a trend View that needs to be exported on users call.

Can we do that in property binding or somewhere else?

What format are you looking to export the trend data:

  1. CSV
  2. Image
  3. Trend Preset (Tags, Axes, etc.)

Numbers 1 and 3 are very possible (not sure about 2)

Also are you using the TimeSeries chart, or the XY Chart?

If you let me know I can give you an example of how to do so :slight_smile:

Not the data, i am looking if its possible to export the view itself, such that i can import it to any other project using script

It’s not possible to do directly, but project resources are just files on the disk. From a script in Perspective, you could theoretically read from ${ignitionInstallDirectory}/data/projects/${nameOfProject}/com.inductiveautomation.perspective/views/path/to/view/view.json