var FR001400N1P4_resus_an = { "type": "bar", "plot":{ "tooltip" : { "short": true, "decimals": 1, }, }, "title":{ "text": "Compte de résultats", "font-size": "15px" }, noData: { text: 'Aucune Donnée', backgroundColor: '#f2f2f2' }, "series": [{ "legend-text": "Chiffre d'affaires", "values": [[2018,null],[2019,null],[2020,40000],[2021,47000],[2022,1000]], "background-color": "purple", },{ "legend-text": "Résultat Opérationnel", "values": [[2018,null],[2019,-20025000],[2020,-18914000],[2021,-22857000],[2022,-27818000]], "background-color": "rgb(0, 72, 145)", },{ "legend-text": "Résultat net", "values": [[2018,null],[2019,-23309000],[2020,-21564000],[2021,-30618000],[2022,-38446000]], "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":"1x3", "y": 30, "x": 0, "item": { "font-size": "11px" } }, "scale-y" : { "short": true, "guide": {"line-color": "rgb(127,127,127)",}, "item": { "font-size": "12px" }, }, "scale-x" : { "item": { "font-size": "12px" }, } } zingchart.render({ id: 'FR001400N1P4_resus_an', data: FR001400N1P4_resus_an, height: "350", width: "100%" });