Size or experience?
author(s): Erik
by E D
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; max-width: 800px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'scatter',
zoomType: 'xy'
},
title: {
text: 'Cassava area and years of growing experience in Vietnam and Cambodia'
},
subtitle: {
text: 'Source: Mr. E and his big survey'
},
xAxis: {
title: {
enabled: true,
text: 'Area cassava'
},
startOnTick: true,
endOnTick: true,
showLastLabel: true
},
yAxis: {
title: {
text: 'Years experience'
}
},
legend: {
layout: 'vertical',
align: 'center',
verticalAlign: 'top',
x: 100,
y: 80,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF',
borderWidth: 1
},
plotOptions: {
scatter: {
marker: {
radius: 5,
states: {
hover: {
enabled: true,
lineColor: 'rgb(100,100,100)'
}
}
},
states: {
hover: {
marker: {
enabled: false
}
}
},
tooltip: {
headerFormat: '<b>{series.name}</b><br>',
pointFormat: '{point.x} Area cassava, {point.y} Years experience'
}
}
},
series: [{
name: 'Vietnam',
color: 'rgba(223, 83, 83, .5)',
data:...