x 轴上的值不断重复出现,我只希望出现三个值:Rural、Peri Urban 和 Urban。下面是我的 Javascript 代码,显示了drawChar
用于可视化图表的 t 函数。可能是什么问题呢?
function drawVisualization(County) {
google.visualization.drawChart({
containerId: "visualization",
dataSourceUrl: "http://www.google.com/fusiontables/gvizdata?tq=",
query: "SELECT Environment,'BoyPupils','GirlPupils' " +
"FROM 1eC4sIAgVXfFj01mOM2cDiyW2nly7TcFeIXj1G3s" +
"WHERE Environment IN ('Rural','Urban'.'Peri Urban')",
chartType: "ColumnChart",
options: {
title: County,
height: 750,
width: 1100
}
});
}