{
let out = 0;
if (data_clicked) {
let chart_option = {
title: {
text: basin,
},
grid: {
left: '0%',
right: '0%',
top: '10%',
bottom: '0%',
containLabel: true
},
yAxis: {
data: data_clicked.map(v => v.ws_name_f_),
},
xAxis: {
},
series: [{
data: data_clicked.map(v => v.hectares),
type: 'bar',
color: 'green'
}]
};
chart.setOption(chart_option);
out = data_clicked.length;
}
return out;
}