var FR001400AJ45_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,279795.91836735],[2018,11.576175776285],[2019,11.149782473586],[2020,6.8542674287948],[2021,11.6705190166],[2022,10.566631689402],[2023,9.3568076773807]], "background-color": "rgb(0, 72, 145)", },{ "legend-text": "Marge nette", "values": [[2017,null],[2018,7.6130379516978],[2019,7.2550238243215],[2020,3.0875958766916],[2021,7.7495272115991],[2022,6.9989506820567],[2023,6.9964365098966]], "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: 'FR001400AJ45_marges_an', data: FR001400AJ45_marges_an, height: "350", width: "100%" });