0
我想从谷歌API类似下面。我的雷达图能得到的一切,除了平均分配0,0.5,1,1.5,2,2.5,3影像图,谷歌
在我目前的图表中,最小值取自给定的数据和最大值,以及.its之间的分隔,因此如果6是我的最大值并且最小值是3,那么在圆的非常中心处它是3,然后下一个cud是3.4,最后一个边缘是6.我应该在下面的代码中做出什么改变,以平均分配(例如0到6)。
function drawVisualization() {
var options = {};
// Chart API chart type 'rs' is radar chart
options.cht = 'r';
// set the line colors
options.colors = ['#00FF00'];
// fill the area under the lines
//options.fill = true;
// create a grid for the chart
// options.chg = '25.0,25.0,4.0,4.0';
// options.chxl: '0:|1|2|3|4|5|6';
var arr = [["165q",1.3333333333333],["160q",6],["161q",6.6666666666667],["162q",7],["163q",8],["164q",5]];
//var pi = '\u03C0';
dataTable = google.visualization.arrayToDataTable(arr, true);
// Treat first row as data as well.
var chart = new google.visualization.ImageChart(document.getElementById('visualization'));
chart.draw(dataTable, options);
}
</script>