Email Dynamic Chart/Graph

Is there a way using hubspot email marketing to send out charts?
Option 1

  • I would like to create a template in hubpot with place holders for the charts.
  • I would send the data to hubspot to build the chart

Option 2

  • I would create the template in hubspot with place hold for images.
  • I would use a service like chart.js and insert the chart into the email as an image.

Anyone have experience with this? Would like to know the best approach to accomplish this.

I think you will likely have to go with #2 and create the email via the API ( https://legacydocs.hubspot.com/docs/methods/lists/marketing-email-overview ). I haven’t done this specific example before, but I can’t think of any programmatic way to do this in Hubspot to dynamically add external images which is why I am thinking if you use the API to create the marketing email externally, you could post the image and then load it in the email if you wanted.