First, Credits property description
Strictly speaking, credits does not count as copyright information, the official saying is: Highchart by default puts
A credits label in the lower right corner of the chart.
Anyway, in their own charts with highcharts words and links, which are beautiful and professional graphics are not good. By configuring the Credits property, you can remove or modify highcharts copyright information.
Second, credits attribute detailed
Parameters |
Description |
Default Value |
Enable |
Whether to display copyright information |
True, which is also shown by default |
Href |
Link Address |
Http://www.highcharts.com |
Position |
Location of copyright text |
Position: { Align: ' Right ', x:-10, VerticalAlign: ' Bottom ', y:-5 } |
Style |
Style of copyright text |
ItemStyle: { Cursor: ' pointer ', color: ' #909090 ′,fontsize: ' 10px ' } |
Text |
Copyright text |
Highcharts.com |
Iii. Description of the case
<meta Http-equiv="Content-type" Content="Text/html; Charset=utf-8 "> <script Type="Text/javascript" Src="Js/jquery.min.js"></script> <script Type="Text/javascript">$(function () { VarChart;$(Document).Ready(function() {Chart= New Highcharts.Chart({ Chart property configuration in HighchartsChart: {Renderto: ' Highcharts_2_3 ',div tagsType: ' Column ',Chart type },Credits: { Enable:true, the default is true, you can not configure If you want to remove the copyright (that is, do not display), you only need to set Enable:falseHref:' Http://www.52wulian.org ',Link AddressPosition: { The position of the textX:-30,Y:-30 },Style:{ Style of textColor:' Red ',FontWeight:' Bold ' },Text:' I love the internet of Things ' Text },Xaxis: {Categories: [' 1 ',' 2 ',' 3 ',' 4 ',' 5 '] },Series: [{Name: ' Series1 ',Data: [2,4,5,9,2] }] }); }); }); </script> <body> <script Src="Js/highcharts.js"></script> <script Src="Js/exporting.js"></script> <div id="Highcharts_2_3" style="min-width: 400px; height: 400px; margin: 0 auto">< /div> </body>
Four, the effect
Five, online demo demo address: http://www.52wulian.org/test/HighCharts/highcharts_2_3_credits.html Six, source code download: http://pan.baidu.com/ share/link?shareid=208619&uk=3087605183
"Highcharts Series tutorial" Five, copyright attributes--credits