var FR001400JXA2_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": [[2018,null],[2019,-3.7986704653371],[2020,-11.630999113587],[2021,-48.6160397445],[2022,-73.721977791745]], "background-color": "rgb(0, 72, 145)", },{ "legend-text": "Marge nette", "values": [[2018,null],[2019,1.2604679271346],[2020,-11.808281625934],[2021,-51.825565807113],[2022,-107.05007332914]], "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: 'FR001400JXA2_marges_an', data: FR001400JXA2_marges_an, height: "350", width: "100%" });