Skip to content
On this page

Image Download ​

The image download button allows users to download images from website elements like charts, using the snapDOM library. It provides options for different formats and sizes. Use the class 'image-hidden' on elements that should not be included in the image.

There is also an ImageWrapper component that can be used to add margin around the downloaded element.

The Component ​

  • Data 1
     
     
     
  • Data 2
     
     
     
  • Data 3
     
     
     

Usage ​

vue
<ImageBtn element-id="image" filename="chart" />
<ImageWrapper id="image">
  <BarChart />
</ImageWrapper>

Dependencies ​

  • snapDOM library
  • ImageWrapper component