Skip to content

Add Export as PNG/PDF Option for Graphs #412

@sneha-94

Description

@sneha-94

his PR introduces the ability to export graphs as PNG or PDF files directly from the dashboard, making it easier for users to save and share visual insights.

🚀 Key Features Added:
📸 Export as PNG using html2canvas

🧾 Export as PDF using jsPDF

🧩 Export buttons added to each chart container

✍️ Users can enter a custom filename before download

💾 Supports both modern browsers and offline use

🛠️ Implementation Details:
Added utility function exportGraph(containerId, format)

Integrated export buttons with onclick handlers for both PNG & PDF

Input field for custom filename added above each chart

Ensured layout doesn't shift during capture using fixed sizing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Review QueuedWaiting for the Dataverse's Maintainer to review this issue.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions