Displaying a pie chart in email

Hi,

Is there any way to send a piechart through email (sent using system.net.sendEmail) using html code?

Thanks!

Maybe you can create a report with the pie chart showing the data that you want it to show and email that.

this worked

…but the watermark

Any way to do this without the report module?

The watermark won't be there if you activate ignition licence for reporting module.
I'm not sure if there is another way to do this.

1 Like

Was thinking of:

Generating piechart in a screen —> End of every week, automatically taking a snapshot of the piechart component —> store image in gateway –> send image through the img tag

How do you take the snapshopt automatically by the end of every week?

No idea

Perspective scripts run on the gateway and it doesn't have a "screen". Only the clients do.

You could look for a Python 2.7 way of generating a PNG pie chart from your data and embed that in your email.

Figure out how many hours that's going to take, multiply by your hourly rate and compare against the cost of the reporting module (which you'll probably use many times once you have it).

4 Likes