A How-to for our data graphics (french version below)
To add the infographics to your website, copy and paste the embed code below:
<div data-pym-src="the-given-url-of-our-data-graphics"></div>To add the infographics to your website we use Pym.js, an open source javascript code which allows control of iframe sizes.
So, you don't have to worry about infographic sizes : they adapt to your website.
Code to add to your site (in the html markup or right after the first code given):
<script type="text/javascript" src="https://s3.eu-central-1.amazonaws.com/afp-interactive/vendors/pym.min.js"></script>Pour ajouter les infographies à votre site, ajoutez le code suivant :
<div data-pym-src="Url-fournie-pour-notre-infographie"></div>Pour ajouter les infographies sur votre site, nous utilisons Pym.js, un script open-source permettant de contrôler la taille des iframes.
Ainsi, vous n’avez plus à vous soucier de la taille des infographies : celles-ci s’adaptent totalement à votre site
Code à ajouter à votre site (dans le markup HTML de votre site ou juste après la ligne ci-dessus):
<script type="text/javascript" src="https://s3.eu-central-1.amazonaws.com/afp-interactive/vendors/pym.min.js"></script>