Skip to main content

Embedding content

Any FiglinQ chart can be embedded in online media (blogs, webpages, journal pages). When you embed a FiglinQ chart, you are in fact publicly sharing the chart, the underlying data and the code that describes the chart. Anyone who visits a webpage with embedded chart will be able to access it (and the underlying data). When you update the chart, it will be automatically updated wherever you have embedded it!

At present you can embed charts and data grids. Embedding figures is not supported.

How to embed?#

You can embed a chart or data grid in any website using a HTML code or an iframe code, from "My Files" area or from Chart Editor. You must then paste it into the source code of the target website; the way to do this will depend on the website, and you will have to ask the webmaster for further instructions.

Note: the status of embedded plots must be public, otherwise only logged-in FiglinQ users will be able to view them. Check this document for more information on content accessibility status in FiglinQ (and how to change it).

Note: You can embed any public content, not just your own!

The chart below has been embedded in this page using the following iframe code. You can modify the code to see the results in real-time: for instance change the ID of the chart from 7 to 9 in line 6 to embed another chart!

Live Editor

Customizing the iframe#

You can add a number of parameters to the embed code to customize the embedded chart; these parameters are listed in the following table. You can play with the live code editor above to add different parameters to the src attribute in the embed code, like so:

autosizetrue, falseDetermines whether the embedded chart will be automatically resized to fit the external container.
modebartrue, falseDetermines whether to show the interactive modebar.
logotrue, falseDetermines whether to show Plotly logo.
width0 - 100%Set chart width within the iframe.
height0 - 100%Set chart height within the iframe.

Getting the embed code#

The embedding code associated with each chart and data grid can be accessed from the "My Files" area and from the Chart Editor area.

To get the embed code from within My Files area, click the icon, click the "Embed" tab and copy either the HTML or iframe code.

Getting embed code in My Files area