| id | heading | subheading | content | link |
|---|---|---|---|---|
| steam-wand | Steam wand | Froths milk | Angle the tip just below the surface. | |
| porta-filter | Portafilter | Holds the coffee | Lock it in a quarter turn. | |
| drip-tray | Drip tray | Catches spills | Empty it every day. | |
| power-button | Power | Switches the machine on | Wait two minutes to warm up. |
How to Create an Interactive SVG
A step by step walkthrough for turning an SVG drawing into a clickable diagram with popups or a text panel in PlotSet.
Environ 10 minutesYou will end up with a drawing whose parts open an explanation when a reader clicks or hovers over them.
Expect about ten minutes. Most of it goes on checking that each id in your data matches an element in the drawing.
Les données dont vous avez besoin
One row per clickable part, with the id of an element in the SVG and the text to show for it.
The id must match the id, class, name or aria-label of an element in the SVG, ignoring case.
Only the id is required. The heading falls back to the id if left blank.
A category column can recolour the matched parts and build a legend.
A reveal column names an element that stays hidden until its row is selected.
Les étapes
Le parcours exact dans PlotSet, d'un modèle vierge à un graphique terminé.
- 01
Open the Interactive SVG template
From the PlotSet dashboard, start a new project and choose Interactive SVG from the Other category. It loads with an espresso machine and five numbered parts.

Chaque guide commence ici. Choisissez la catégorie, puis le modèle : c'est la même grille quel que soit le type de graphique visé. - 02
Add your drawing
Open the SVG tab and give a URL or paste your SVG markup. Choose how the drawing fits, sizes and aligns inside the chart.
- 03
Add your data
Import a CSV or .xlsx file, paste rows from a spreadsheet, or connect a Google Sheet. Each row is one part of the drawing.

La vue données, ici sur un projet de graphique en barres. Importez un CSV, extrayez les chiffres d'une image avec 'Magic Import' ou synchronisez une Google Sheet. Le panneau est identique pour tous les types de graphique. - 04
Bind the columns
Choose the id column, then the heading, subheading and content columns. Add a category or a link column if you have them.

Les associations déterminent quelle colonne devient l'étiquette, laquelle fournit les valeurs et laquelle pilote la couleur. 'Auto Binding' les devine à partir de vos en-têtes : vérifiez-les plutôt que de les tenir pour acquises. - 05
Choose click or hover
In the Interaction tab, pick the trigger, how unselected parts fade, and whether a click follows the row's link.

L'onglet 'Preview' pour un graphique Interactive SVG. Tous les réglages de style se trouvent dans le panneau entouré en rouge : apparence, en-tête, pied de page et les options propres à ce type de graphique, chacun dans un onglet distinct. - 06
Pick a popup or a panel
The Popup content and Text panel tabs set where the details appear and how they are styled.
- 07
Check it on a phone
The Mobile tab sets whether readers see the drawing, the text or both below a set width.
- 08
Publish and embed
Publish for a live chart and copy the embed code from the Share dialog. Click every part once before you share it.

C'est par 'Share' qu'un graphique terminé devient un lien public et un code d'intégration.
Partez du modèle Interactive SVG avec des données d'exemple déjà chargées, puis remplacez-les par les vôtres.
Ouvrir le modèleConseils de style pour un Interactive SVG
Name your layers
Give each part of the drawing a clear id in your design tool before you export the SVG.
Keep text short
Two or three lines per part read well in a popup and fit the panel.
Number the parts
Markers with numbers show readers where to click and give the text an order.
Dim what is not covered
Fading the parts with no row keeps the eye on what is interactive.
Erreurs courantes en créant un Interactive SVG
A part does not respond
Its id does not match an element in the SVG. Compare the spelling with the layer name.
The drawing does not load
The URL is blocked or missing cross-origin headers. Paste the markup instead.
The panel text is cut off
The panel does not scroll. Shorten the text or switch to popups.
Nothing happens on a phone
Hover does not exist on touch screens. Switch the trigger to click.
En savoir plus sur le Interactive SVG
Vous n'êtes pas sûr que le Interactive SVG soit le bon choix ? Découvrez ce que c'est, quand l'utiliser et quand l'éviter.
Interactive SVG : questions fréquentes
Yes. Export it as SVG with the layer names kept as ids, then paste the markup or link to it.
Créez votre Interactive SVG maintenant
Gratuit pour commencer avec plus de 300 modèles. Aucune carte bancaire requise.


