简体   繁体   English

从Google图表中删除范围栏

[英]Remove the range-bar from Google charts

I have created a Google chart and I'm trying to remove the 'Range bar' it seems? 我已经创建了Google图表,并且正在尝试删除“范围栏”吗? (I'm not sure of its official name) but here's a picture. (我不确定它的正式名称),但这是一张照片。 I've tried Googling remove range bar from Stackoverflow but I've had no results. 我已经尝试使用Google搜索从Stackoverflow删除范围栏,但没有任何结果。

Any help on how I can remove this is greatly appreciated. 非常感谢您提供有关如何删除此内容的帮助。 What do i target to remove this? 我的目标是删除此内容?

在此处输入图片说明

you can remove the legend , by including legend: 'none' in the config options... 您可以通过在配置选项中添加legend: 'none'来删除图例 ...

see following working snippet... 请参阅以下工作片段...

 google.charts.load('upcoming', { callback: drawRegionsMap, packages: ['geochart'] }); function drawRegionsMap() { var data = google.visualization.arrayToDataTable([ ['Country', 'Popularity'], ['Germany', 200], ['United States', 300], ['Brazil', 400], ['Canada', 500], ['France', 600], ['RU', 700] ]); var chart = new google.visualization.GeoChart(document.getElementById('chart_div')); chart.draw(data, { legend: 'none' }); } 
 <script src="https://www.gstatic.com/charts/loader.js"></script> <div id="chart_div"></div> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM