One, lang attribute description
The Lang property is primarily used to configure language-related properties such as displayed text.
The main configuration is as follows: decimal symbol , export related text , month text , week text , etc.
The lang attribute is not important, no special case, no configuration.
Second, the lang attribute detailed
Parameters |
Description |
Default Value |
Decimalpoint |
Decimal symbol |
. |
Downloadpng Downloadjpeg Downloadpdf Downloadsvg |
Text related to chart download |
Download PNG Image Download JPEG Image Download PDF Document Download SVG Vector image |
Exportbuttontitle |
Download button title text |
Export to raster or vector image |
Loading |
Loading Chinese text |
Loading ... |
Months |
Month text |
[' January ', ' February ', ' March ', ' April ', ' may ', ' June ', ' July ', ' August ', ' September ', ' October ', ' November ', ' December '] |
Printbuttontitle |
Print button text |
Print the chart |
Resetzoom |
Resize text, main user drag mouse to enlarge |
Reset Zoom |
Resetzoomtitle |
Reset Size Title Text |
Reset Zoom Level 1:1 |
Reset Zoom Level 1:1 |
Thousands of separators, like 1000,000. |
, |
Weekdays |
Week text |
[' Sunday ', ' Monday ', ' Tuesday ', ' Wednesday ', ' Thursday ', ' Friday ', ' Saturday '] |
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: {Renderto: ' Container ',Type: ' Area ', },Credits: {Enabled:FalseDo not display highcharts copyright information },Lang:{Decimalpoint:‘.‘,Downloadpng:' Download PNG images ',Downloadjpeg:' Download jpg images ',Downloadpdf:' Download PDF file ',Exportbuttontitle:' Export ... ',Loading:' Load in ... ',Months:[' January ',' February ',' March ',' April ',' May ',' June ',' July ',' August ',' September ',' October ',' November ',' December '],Printbuttontitle:' Print chart ',Resetzoom:' Restore chart ',Resetzoomtitle:' Restore chart to 1:1 size ',Thousandssep:‘,‘,Weekdays:[' Sun ', ' Mon ', ' Tues ', ' Wednes ', ' Thurs ', ' Fri ', ' Satur '] },Xaxis: {Type:' DateTime ',Categories: [' Sunday ', ' Monday ', ' Tuesday ', ' Wednesday ', ' Thursday ', ' Friday ', ' Saturday '] },Series: [{Name: ' Series1 ',Data: [2,4,5,9,2,7] },{Name:' Series2 ',Data:[3,5,7,2,1,4] }] }); }); }); </script> <body> <script Src="Js/highcharts.js"></script> <script Src="Js/exporting.js"></script> <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto">< /div> </body>
Four, the effect
Online Demo demo Address: http://www.52wulian.org/test/HighCharts/highcharts_2_7_lang.html vi. Resources Download This example source code: http://pan.baidu.com/ share/link?shareid=262884&uk=3087605183
"Highcharts series" Nine, language attributes--lang