javascript 删除 highcharts.com 积分链接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15459224/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 00:50:16  来源:igfitidea点击:

Removing highcharts.com credits link

javascripthighcharts

提问by user2178935

I have just purchased highcharts, but the credits link still appears on my graphs which are quite prominent on my site and it distorts the chart view.

我刚刚购买了highcharts,但积分链接仍然出现在我的图表上,这些链接在我的网站上非常突出,并且它扭曲了图表视图。

I assumed I would get an option, so how do I remove it?

我以为我会得到一个选项,那么如何删除它?

回答by SteveP

You can customise the credits, changing the URL, text, Position etc. All the info is documented here: http://api.highcharts.com/highcharts/credits. To simply disable them altogether, use:

您可以自定义信用,更改 URL、文本、位置等。所有信息都记录在此处:http: //api.highcharts.com/highcharts/credits。要完全禁用它们,请使用:

credits: {
    enabled: false
},

回答by Ahmad Alfy

It's said herethat you should be able to add the following to your chart config:

据说这里您应该能够将以下内容添加到您的图表配置中:

  credits: {
    enabled: false
  },

that will remove the "Highcharts.com" text from the bottom of the chart.

这将从图表底部删除“Highcharts.com”文本。

回答by Arun Kumar N

Both of the following code will work fine for removing highchart.com from the chart:-

以下两个代码都可以很好地从图表中删除 highchart.com:-

credits: false

or

或者

credits:{
 enabled:false,
}

回答by Psychedelic Wizard

Add this to your css.

将此添加到您的 css 中。

.highcharts-credits {
display: none !important;
}

回答by brujo_rojas

credits : null

also works to disable the credits

也可以禁用学分