-2
我正在嘗試使用Fusion表API繪製運動圖。我收到的錯誤消息是:無法解析查詢。 Fusion Table API
「無法解析查詢」。
根據可視化類型的要求,我的融合表格式是第一列的文本,第二列的日期。這是我的代碼,在下面。請問,我做錯了什麼。
google.load("visualization", "1", {packages:["motionchart"]}); google.setOnLoadCallback(drawVisualization); function drawVisualization() { google.visualization.drawChart({ "containerId": "scatter", "dataSourceUrl": "//www.google.com/fusiontables/gvizdata?tq=", "query": "SELECT 'Nationality','Date','StatusofStudentship','Gender','ModeofAdmission','CourseofStudy','ProgrammeofStudy','CGPA','Race','EnglishLanguageProficiency','Disability','ModeofStudy','InternshipLength','SoftskillQuality','HealthSoundness','Employability','DefermentLength','Religion','Mode of Sponsorship',FROM " + "19mRBx3ysm3VfJQ746j8obWldgjxpw1-sBNdQy4kQ#rows:id=1", "refreshInterval": 20, "chartType": "MotionChart", "options": {} }); options['state'] = chart.draw(data, {width: 900, height:400}); '{"colorOption":"4","iconKeySettings":[],"nonSelectedAlpha":0.4,"orderedByX":false,"iconType":"BUBBLE","yAxisOption":"3","uniColorForNonSelected":false,"yZoomedDataMin":150,"dimensions":{"iconDimensions":["dim0"]},"orderedByY":false,"xZoomedIn":false,"yZoomedDataMax":617,"duration":{"multiplier":1,"timeUnit":"D"},"showTrails":true,"xAxisOption":"2","xZoomedDataMax":1200,"time":"1988","xZoomedDataMin":300,"playDuration":15000,"yLambda":1,"sizeOption":"_UNISIZE","yZoomedIn":false,"xLambda":1};'; options['width'] = 900; options['height'] = 400; } google.setOnLoadCallback(drawVisualization);
請格式化您的代碼,使其可讀。目前這是一條巨大的路線,那裏有單引號('),看起來不對。 – geocodezip