var FR0004050300_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": [[2008,-5.1123843102688],[2009,-7.2658402203857],[2010,2.1121351766513],[2011,3.8371182458888],[2012,4.6242774566474],[2013,3.6653386454183],[2014,4.464623533863],[2015,5.8802692171449],[2016,6.6622907778142],[2017,5.9975139838409],[2018,6.2075355157505],[2019,4.0144784468575],[2020,3.9162727886563],[2021,5.2928932500743]], "background-color": "rgb(0, 72, 145)", },{ "legend-text": "Marge nette", "values": [[2008,35.962979286029],[2009,-8.1267217630854],[2010,-0.3840245775730],[2011,1.0571652310102],[2012,1.981833195706],[2013,1.5139442231076],[2014,2.0052970109724],[2015,3.1172511512575],[2016,3.8398424680013],[2017,2.6724673710379],[2018,3.2736256948734],[2019,0.7897334649556],[2020,1.1478730587441],[2021,3.0330062444246]], "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: 'FR0004050300_marges_an', data: FR0004050300_marges_an, height: "350", width: "100%" });