0

从 fusion tables API 高级可视化示例代码中给出的示例中,我设法想出了一张地图和图例。但是,柱形图未显示。“无法解析查询”是正在显示的错误。可能是什么问题呢?

这是我的柱形图代码。

      function drawVisualization(County) {
    google.visualization.drawChart({
      containerId: "visualization",
      dataSourceUrl: "http://www.google.com/fusiontables/gvizdata?tq=",
      query: "SELECT Environment,'BoysPupils','GirlsPupils','FemaleTeachers','MaleTeachers','BoardingPupils' " +
          "FROM 1eC4sIAgVXfFj01mOM2cDiyW2nly7TcFeIXj1G3s WHERE County = '" + County + "'",
      chartType: "ColumnChart",
      options: {
        title: County,
        height: 400,
        width: 400
      }
    });
  }
4

1 回答 1

1

您使用了 2 个错误的列名:'BoysPupils','GirlsPupils'
它必须是'BoyPupils','GirlPupils'

于 2013-09-16T10:48:04.093 回答