Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/377.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在谷歌图表api中编辑谷歌图表视图?_Javascript_Html_Css_Google Visualization - Fatal编程技术网

Javascript 如何在谷歌图表api中编辑谷歌图表视图?

Javascript 如何在谷歌图表api中编辑谷歌图表视图?,javascript,html,css,google-visualization,Javascript,Html,Css,Google Visualization,这是该栏的html/javascript load('current',{'packages':['bar']}); google.charts.setOnLoadCallback(drawChart); 函数绘图图(){ var data=google.visualization.arrayToDataTable([ [“年度”、“销售额”、“费用”、“利润”], ['2014', 1000, 400, 200], ['2015', 1170, 460, 250], ['2016', 66

这是该栏的html/javascript


load('current',{'packages':['bar']});
google.charts.setOnLoadCallback(drawChart);
函数绘图图(){
var data=google.visualization.arrayToDataTable([
[“年度”、“销售额”、“费用”、“利润”],
['2014', 1000, 400, 200],
['2015', 1170, 460, 250],
['2016', 660, 1120, 300],
['2017', 1030, 540, 350]
]);
变量选项={
图表:{
标题:“公司业绩”,
字幕:“销售、费用和利润:2014-2017”,
}
};
var chart=new google.charts.Bar(document.getElementById('columnchart_material');
图表绘制(数据、选项);
}
可能重复的您尝试过吗?可能重复的您尝试过吗?