var FR00140085W6_marges_an = { "type": "bar", "plot":{ "tooltip" : { "text": "%v%", "decimals": 1, }, }, "title":{ "text": "Marges", "font-size": "15px" }, noData: { text: 'Aucune Donnée', backgroundColor: '#f2f2f2' }, "series": [{ "legend-text": "Marge Opérationnelle", "values": [[2017,null],[2018,-89.696778931906],[2019,50.454894223391],[2020,-60.87962962963],[2021,77.896357106208],[2022,-32.944634982852],[2023,-22.590222339513]], "background-color": "rgb(0, 72, 145)", },{ "legend-text": "Marge nette", "values": [[2017,null],[2018,-109.41139439723],[2019,34.604844897512],[2020,-75.473484848485],[2021,57.496151872755],[2022,-35.100440960314],[2023,-65.890347694135]], "background-color": "rgb(27, 139, 61)", }, ], "plotarea" : { "margin-right":"20", "margin-left":"50", "margin-bottom":"50", "margin-top":"70", "background-color-1": "white", "background-color-2": "rgb(210,210,210)", }, "legend": { "layout":"1x2", "x" : 0, "y" : 33, "item": { "font-size": "11px" } }, "scale-y" : { "format":"%v%", "guide": {"line-color": "rgb(127,127,127)",}, "item": { "font-size": "12px" } }, "scale-x" : { "item": { "font-size": "12px" }, } } zingchart.render({ id: 'FR00140085W6_marges_an', data: FR00140085W6_marges_an, height: "350", width: "100%" });