Planteurs et surfaces cannières
<script type="text/javascript" src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script type="text/javascript" src="https://www.amcharts.com/lib/3/serial.js"></script>
<script type="text/javascript">
AmCharts.makeChart("chartdiv",
{
"type": "serial",
"categoryField": "category",
"angle": 10,
"depth3D": 6,
"colors": [
"#099e42",
"#122fe8",
"#B0DE09",
"#0D8ECF",
"#2A0CD0",
"#CD0D74",
"#CC0000",
"#00CC00",
"#0000CC",
"#DDDDDD",
"#999999",
"#333333",
"#990000"
],
"startDuration": 3,
"creditsPosition": "top-right",
"categoryAxis": {
"gridPosition": "start",
"labelFrequency": 4,
"labelOffset": -3,
"title": ""
},
"trendLines": [],
"graphs": [
{
"balloonText": "[[title]] of [[category]]:[[value]]",
"fillAlphas": 1,
"id": "AmGraph-1",
"labelText": "[[value]]",
"title": "Nombre d’exploitants de canne ",
"type": "column",
"valueField": "column-1"
},
{
"balloonText": "[[title]] of [[category]]:[[value]]",
"bullet": "round",
"id": "AmGraph-2",
"labelText": "[[value]]",
"lineThickness": 2,
"title": "Sole cannière déclarée",
"valueAxis": "ValueAxis-2",
"valueField": "column-2"
}
],
"guides": [],
"valueAxes": [
{
"id": "ValueAxis-1",
"title": "Planteurs déclarés"
},
{
"id": "ValueAxis-2",
"position": "right",
"title": "ha de canne"
}
],
"allLabels": [],
"balloon": {},
"legend": {
"enabled": true,
"align": "center",
"useGraphSettings": true
},
"titles": [
{
"color": "#339012",
"id": "Title-1",
"size": 18,
"text": "Planteurs et surfaces cannières"
}
],
"dataProvider": [
{
"category": "2009",
"column-1": "4000",
"column-2": "14000"
},
{
"category": "2010",
"column-1": "3980",
"column-2": "13950"
},
{
"category": "2011",
"column-1": "3700",
"column-2": "13600"
},
{
"category": "2012",
"column-1": "3600",
"column-2": "13500"
},
{
"category": "2013",
"column-1": "3600",
"column-2": "12800"
},
{
"category": "2014",
"column-1": "3600",
"column-2": "13100"
},
{
"category": "2015",
"column-1": "3500",
"column-2": "13200"
},
{
"category": "2016",
"column-1": "3400",
"column-2": "13150"
}
]
}
);
</script>