-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathref-cn.html
9120 lines (8734 loc) · 433 KB
/
ref-cn.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Highcharts - Options Reference</title>
<link rel="stylesheet" type="text/css" href="src/ref-cn.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="src/ref-cn.js"></script>
</head>
<body>
<div id="reference-loading">Indexing the members. This may take some seconds...</div>
<div id="content" class="hidden">
<div id="nav">
<div class="header">
<h1>Highcharts Options Reference</h1>
<a href="http://www.highcharts.com" target="_blank"><< Go to the Highcharts home page</a>
<p>Navigate the structure by clicking plus and minus. Click the blue object names for details.</p>
</div>
<hr/>
<h3>The options object</h3>
<div id="options"></div>
<hr/>
<h3>Methods and properties</h3>
<div id="methods-and-properties-toc">
<ul style="margin-left: 0">
<li><a href="#highcharts-object">Highcharts (namespace)</a></li>
<li><a href="#renderer">Renderer</a></li>
<li><a href="#element">Element</a></li>
<li><a href="#chart-object">Chart</a></li>
<li><a href="#axis-object">Axis</a></li>
<li><a href="#series-object">Series</a></li>
<li><a href="#point-object">Point</a></li>
</ul>
</div>
</div>
<!-- Base fiddle: http://jsfiddle.net/CAKQH/ -->
<div id="details">
<div class="section">
<h2>chart</h2>
<h2>图表</h2>
<div class="section-description">
关于图表区和图形区的参数及一般图表通用参数。
</div>
<div class="member">
<span class="name">alignTicks</span>
<span class="name-cn">刻度线</span>
<span class="type">Boolean</span>
<span class="default">true</span>
<div class="description" title="">
<p>当使用多个轴线时,两个或两个以上相反轴的刻度将会自动添加到刻度线并且刻度线数最少。这个可以设置 <code>alignTicks</code> 为 false 来阻止。如果网格线显得零乱,这里有个方法来隐藏它们,就是设置 <code>gridLineWidth</code> 为 0。</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/alignticks-true/">默认为 True</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/alignticks-false/">false</a>.
</div>
</div>
<div class="member">
<span class="name">animation</span>
<span class="name-cn">动画</span>
<span class="type">Boolean|Object</span>
<span class="default">true</span>
<div class="description">
<p>设置所有图表更新的整体动画。设置为 false 时,图表动画被关闭。这也可以通过单独的API方法通过参数来覆盖。这个选项在初始化图表的动画中不会起作用。见<a class="internal" href="#plotOptions-series">图形选项系列 plotOptions.series</a>=> animation。</p>
<p>动画可以设置为布尔值或一个配置对象。如果 <code>true</code>, 它会使用'swing' jQuery 缓动效果, 时长500ms. 如果使用一个配置对象,支持下面的属性:</p>
<dl>
<dt>duration</dt>
<dd>时间以毫秒为单位的动画。</dd>
<dt>easing</dt>
<dd>当使用jQuery作为总体框架, 缓动效果能设置为 <code>linear</code> 或 <code>swing</code>。当使用jQuery plug-ins时,有更多的缓动函数支持,尤其是jQuery UI套件。见<a href="http://api.jquery.com/animate/">jQuery animate文档</a>。当使用Mootools作为总体框架,使用的属性名为<code>transition</code>而不是<code>easing</code>。</dd>
</dl>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/animation-none/">Updating with no animation</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/animation-duration/">with a longer duration</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/animation-easing/">with a jQuery UI easing</a>.
</div>
</div>
<div class="member">
<span class="name">backgroundColor</span>
<span class="name-cn">背景颜色</span>
<span class="type">Color</span>
<span class="default">"#FFFFFF"</span>
<div class="description">
<p>外图表区域的背景颜色或渐变。默认为 <code>"#FFFFFF"</code></p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/backgroundcolor-color/">Color</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/backgroundcolor-gradient/">gradient</a>
</div>
</div>
<div class="member">
<span class="name">borderColor</span>
<span class="name-cn">边框颜色</span>
<span class="type">Color</span>
<span class="default">"#4572A7"</span>
<div class="description">
<p>外图表区域的边框颜色。边框是使用矢量图技术绘制来支持圆角。默认颜色 <code>"#4572A7"</code></p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/bordercolor/">Brown border</a>
</div>
</div>
<div class="member">
<span class="name">borderRadius</span>
<span class="name-cn">边框圆角</span>
<span class="type">Number</span>
<span class="default">5</span>
<div class="description">
<p>外图表区域边框圆角。默认为<code>5</code></p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/borderradius/">20px radius</a>
</div>
</div>
<div class="member">
<span class="name">borderWidth</span>
<span class="name-cn">边框宽度</span>
<span class="type">Number</span>
<span class="default">0</span>
<div class="description">
<p>外图表边框宽度。边框是使用矢量图技术绘制来支持圆角。默认宽度为<code>0</code></p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/borderwidth/">5px border</a>
</div>
</div>
<div class="member">
<span class="name">className</span>
<span class="name-cn">类名</span>
<span class="type">String</span>
<span class="default">""</span>
<div class="description">
<p>给图表容器<code>div</code>加一个class,方便为每个图表单独加CSS样式</p>
for each chart.
</div>
</div>
<div class="member">
<span class="name">defaultSeriesType</span>
<span class="name-cn">默认数列类型</span>
<span class="type">String</span>
<span class="default"></span>
<div class="description">
<code>type</code>的别名,取值还有"line, spline, scatter, splinearea bar, pie, area, column"等.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/defaultseriestype/">Bar</a>
</div>
</div>
<div class="member">
<span class="name">events</span>
<span class="name-cn">图表事件</span>
<span class="type">chart.events</span>
<span class="default"></span>
<div class="description">
<p>图表的事件监听。</p>
</div>
</div>
<div class="member">
<span class="name">height</span>
<span class="name-cn">图表高度</span>
<span class="type">Number</span>
<span class="default">null</span>
<div class="description">
<p>图表的高度。默认高度是根据容器元素的offset高度计算的。</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/height/">500px height</a>
</div>
</div>
<div class="member">
<span class="name">ignoreHiddenSeries</span>
<span class="name-cn">隐藏数列</span>
<span class="type">Boolean</span>
<span class="default">true</span>
<span class="since">Since 1.2.0</span>
<div class="description">
<p>如果值为true,刻度轴将会根据剩余的数据系列进行缩放显示。</p>
<p>如果值为false,隐藏和显示一组数据系列将不会影响其余数据系列的轴线。</p>
<p>对于堆栈类型的显示,一旦有一组数据隐藏了,即使轴线没有变,剩余的的数据会显示在隐藏数据的刻度上。</p>
<p>具体请见面面的demo,鼠标点击下方的"Series"会有变化。</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/ignorehiddenseries-true/">True by default</a>
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/ignorehiddenseries-false/">false</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/ignorehiddenseries-true-stacked/">true with stack</a>
</div>
</div>
<div class="member">
<span class="name">inverted</span>
<span class="name-cn">图表倒置</span>
<span class="type">Boolean</span>
<span class="default">false</span>
<div class="description">
<p>是否倒置,让x轴垂直,y轴水平显示。当值为true时,x轴与默认相反。如果当前图表是柱状图,它会自动倒置显示。</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/inverted/">Inverted line</a>
</div>
</div>
<div class="member">
<span class="name">margin</span>
<span class="name-cn">外边距</span>
<span class="type">Array</span>
<span class="default">[null]</span>
<div class="description">
<p>The margin between the outer edge of the chart and the plot area. The numbers in
the array designate top, right, bottom and left respectively. Use the options
<code>marginTop</code>, <code>marginRight</code>, <code>marginBottom</code> and
<code>marginLeft</code> for shorthand setting of one option.</p>
<p>Since version 2.1, the margin is 0 by default. The actual space is dynamically calculated
from the offset of axis labels, axis title, title, subtitle and legend in addition
to the <code>spacingTop</code>, <code>spacingRight</code>, <code>spacingBottom</code> and
<code>spacingLeft</code> options.</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/margins-zero/">Zero margins</a>
</div>
</div>
<div class="member">
<span class="name">marginTop</span>
<span class="type">Number</span>
<span class="default">null</span>
<span class="since">Since 2.0</span>
<div class="description">
The margin between the top outer edge of the chart and the plot area. Use this to set a fixed
pixel value for the margin as opposed to the default dynamic margin. See also <code>spacingTop</code>.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/margintop/">100px top margin</a>
</div>
</div>
<div class="member">
<span class="name">marginRight</span>
<span class="name-cn"></span>
<span class="type">Number</span>
<span class="default">50</span>
<span class="since">Since 2.0</span>
<div class="description">
The margin between the right outer edge of the chart and the plot area. Use this to set a fixed
pixel value for the margin as opposed to the default dynamic margin. See also <code>spacingRight</code>.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/marginright/">100px right margin</a>
</div>
</div>
<div class="member">
<span class="name">marginBottom</span>
<span class="name-cn"></span>
<span class="type">Number</span>
<span class="default">70</span>
<span class="since">Since 2.0</span>
<div class="description">
The margin between the bottom outer edge of the chart and the plot area. Use this to set a fixed
pixel value for the margin as opposed to the default dynamic margin. See also <code>spacingBottom</code>.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/marginbottom/">100px bottom margin</a>
</div>
</div>
<div class="member">
<span class="name">marginLeft</span>
<span class="name-cn"></span>
<span class="type">Number</span>
<span class="default">80</span>
<span class="since">Since 2.0</span>
<div class="description">
The margin between the left outer edge of the chart and the plot area. Use this to set a fixed
pixel value for the margin as opposed to the default dynamic margin. See also <code>spacingLeft</code>.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/marginleft/">150px left margin</a>
</div>
</div>
<div class="member">
<span class="name">plotBackgroundColor</span>
<span class="name-cn">绘图区背景颜色</span>
<span class="type">Color</span>
<span class="default">null</span>
<div class="description">
The background color or gradient for the plot area.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/plotbackgroundcolor-color/">Color</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/plotbackgroundcolor-gradient/">gradient</a>
</div>
</div>
<div class="member">
<span class="name">plotBackgroundImage</span>
<span class="name-cn">绘图区背景图片</span>
<span class="type">String</span>
<span class="default">null</span>
<div class="description">
The URL for an image to use as the plot background. To set an image as the background
for the entire chart, set a CSS background image to the container element.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/plotbackgroundimage/">Skies</a>
</div>
</div>
<div class="member">
<span class="name">plotBorderColor</span>
<span class="name-cn">绘图区边框颜色</span>
<span class="type">Color</span>
<span class="default">"#C0C0C0"</span>
<div class="description">
The color of the inner chart or plot area border.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/plotbordercolor/">Blue border</a>
</div>
</div>
<div class="member">
<span class="name">plotBorderWidth</span>
<span class="name-cn">绘图区边框宽度</span>
<span class="type">Number</span>
<span class="default">0</span>
<div class="description">
The pixel width of the plot area border.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/plotborderwidth/">1px border</a>
</div>
</div>
<div class="member">
<span class="name">plotShadow</span>
<span class="name-cn">绘图区阴影</span>
<span class="type">Boolean</span>
<span class="default">false</span>
<div class="description">
Whether to apply a drop shadow to the plot area. Requires that plotBackgroundColor
be set.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/plotshadow/">Plot shadow</a>
</div>
</div>
<div class="member">
<span class="name">reflow</span>
<span class="name-cn">回流重排</span>
<span class="type">Boolean</span>
<span class="default">true</span>
<span class="since">2.1</span>
<div class="description">
Whether to reflow the chart to fit the width of the container div on resizing the window.
</div>
<div class="demo">
Move the bar between the JavaScript frame and the Preview frame to see the effect:
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/reflow-true/">True by default</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/reflow-false/">false</a>.
</div>
</div>
<div class="member">
<span class="name">renderTo</span>
<span class="name-cn">渲染到</span>
<span class="type">String|Object</span>
<span class="default">null</span>
<div class="description">
The HTML element where the chart will be rendered. If it is a string, the element by that
id is used. The HTML element can also be passed by direct reference.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/reflow-true/">String</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/renderto-object/">object reference</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/renderto-jquery/">object reference through jQuery</a>,
</div>
</div>
<div class="member">
<span class="name">resetZoomButton</span>
<span class="name-cn">缩放重置按钮</span>
<span class="type">chart.resetZoomButton</span>
<span class="default"></span>
<span class="since">2.2</span>
<div class="description">
</div>
</div>
<div class="member">
<span class="name">selectionMarkerFill</span>
<span class="name-cn">选择标记填充</span>
<span class="type">Color</span>
<span class="default">rgba(69,114,167,0.25)</span>
<span class="since">2.1.7</span>
<div class="description">
<p>在放大或缩小时选择的图表图域内的标记区域的背景颜色。</p>
</div>
</div>
<div class="member">
<span class="name">shadow</span>
<span class="name-cn">阴影</span>
<span class="type">Boolean</span>
<span class="default">false</span>
<div class="description">
<p>是否应用外图表的阴影,需要先设置图表的背景颜色<code>backgroundColor</code>。</p>
backgroundColor be set.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/shadow/">Shadow</a>
</div>
</div>
<div class="member">
<span class="name">showAxes</span>
<span class="name-cn">显示坐标轴</span>
<span class="type">Boolean</span>
<span class="default">false</span>
<span class="since">1.2.5</span>
<div class="description">
<p>在初始化的时候是否显示坐标轴。这仅应用在动态的加入数列到空的图表中,坐标轴会自动的加入到坐标系中。</p>
series are added dynamically,
as axes are automatically added to cartesian series.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/showaxes-false/">False by default</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/showaxes-true/">true</a>
</div>
</div>
<div class="member">
<span class="name">spacingTop</span>
<span class="name-cn">顶部空间</span>
<span class="type">Number</span>
<span class="default">10</span>
<span class="since">2.1</span>
<div class="description">
<p>这个空间在图表顶部边缘与内容区域之间(绘图区,轴线标题及标注,主标题,副标题或顶部位置的说明)。</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/spacingtop-100/">A top spacing of 100</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/spacingtop-10/">floating chart title makes the plot area align to the
default spacingTop of 10.</a>,
</div>
</div>
<div class="member">
<span class="name">spacingRight</span>
<span class="name-cn">右侧空间</span>
<span class="type">Number</span>
<span class="default">10</span>
<span class="since">2.1</span>
<div class="description">
<p>The space between the right edge of the chart and the content (plot area, axis title and labels, title, subtitle or
legend in top position).</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/spacingright-100/">Spacing set to 100</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/spacingright-legend/">legend in right position with default spacing</a>
</div>
</div>
<div class="member">
<span class="name">spacingBottom</span>
<span class="name-cn">底部空间</span>
<span class="type">Number</span>
<span class="default">15</span>
<span class="since">2.1</span>
<div class="description">
<p>The space between the bottom edge of the chart and the content (plot area, axis title and labels, title, subtitle or
legend in top position).</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/spacingbottom/">Spacing bottom set to 100</a>.
</div>
</div>
<div class="member">
<span class="name">spacingLeft</span>
<span class="name-cn">左侧空间</span>
<span class="type">Number</span>
<span class="default">10</span>
<span class="since">2.1</span>
<div class="description">
<p>The space between the left edge of the chart and the content (plot area, axis title and labels, title, subtitle or
legend in top position).</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/spacingleft/">Spacing left set to 100</a>
</div>
</div>
<div class="member">
<span class="name">style</span>
<span class="name-cn">CSS样式</span>
<span class="type">CSSObject</span>
<span class="default"></span>
<div class="description">
<p>给容器<code>div</code>设置额外的行内样式。要注意的是默认字体是在初始渲染的时候渲染器就已经应用上了,这里它(渲染器)并不知道这里个别的图表设置,所以必须设置为全局才会起作用。默认为:
</p>
<pre>style: {
fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif', // default font
fontSize: '12px'
}</pre>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/style-serif-font/">Using a serif type font</a>
</div>
</div>
<div class="member">
<span class="name">type</span>
<span class="name-cn">图表类型</span>
<span class="type">String</span>
<span class="default">"line"</span>
<span class="since">2.1.0</span>
<div class="description">
<p>默认的图表类型。可以设置以下几种:line, spline, area, areaspline, column, bar, pie , scatter.</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/type-bar/">Bar</a>
</div>
</div>
<div class="member">
<span class="name">width</span>
<span class="name-cn">图表宽度</span>
<span class="type">Number</span>
<span class="default">null</span>
<div class="description">
<p>图表的高度。默认高度是根据容器元素的offset高度计算的。</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/width/">800px wide</a>
</div>
</div>
<div class="member">
<span class="name">zoomType</span>
<span class="name-cn">缩放类型</span>
<span class="type">String</span>
<span class="default">""</span>
<div class="description">
<p>决定用户在什么方向可以用鼠标拖拽进行缩放。能设置为<code>x</code>, <code>y</code> 或 <code>xy</code>。</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/zoomtype-none/">None by default</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/zoomtype-x/">x</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/zoomtype-y/">y</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/zoomtype-xy/">xy</a>
</div>
</div>
</div>
<div class="section">
<h2>chart.events</h2>
<h2>图表事件</h2>
<div class="section-description">
<p>图表的事件监听器。</p>
</div>
<div class="member">
<span class="name">addSeries</span>
<span class="name-cn">增加数列</span>
<span class="type">Function</span>
<span class="default"></span>
<span class="since">Since 1.2.0</span>
<div class="description">
Fires when a series is added to the chart after load time, using the <code>addSeries</code>
method. The <code>this</code> keyword refers to the
chart object itself. One parameter, <code>event</code>, is passed to the function.
This contains common event information based on jQuery or MooTools depending on
which library is used as the base for Highcharts. Through <code>event.options</code>
you can access the series options that was passed to the <code>addSeries</code>
method. Returning false prevents the series from being added.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/events-addseries/">Alert on add series</a>
</div>
</div>
<div class="member">
<span class="name">click</span>
<span class="name-cn">点击</span>
<span class="type">Function</span>
<span class="default"></span>
<span class="since">Since 1.2.0</span>
<div class="description">
<p>Fires when clicking on the plot background. The <code>this</code> keyword refers to the
chart object itself. One parameter, <code>event</code>, is passed to the function.
This contains common event information based on jQuery or MooTools depending on
which library is used as the base for Highcharts.</p>
<p>Information on the clicked spot can be found through <code>event.xAxis</code> and
<code>event.yAxis</code>, which are arrays containing the axes of each dimension
and each axis' value at the clicked spot. The primary axes are <code>event.xAxis[0]</code>
and <code>event.yAxis[0]</code>. Remember the unit of a datetime axis is milliseconds
since 1970-01-01 00:00:00.</p>
<pre>click: function(e) {
console.log(
Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', e.xAxis[0].value),
e.yAxis[0].value
)
}</pre>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/events-click/">Alert coordinates on click</a>
</div>
</div>
<div class="member">
<span class="name">load</span>
<span class="name-cn">加载</span>
<span class="type">Function</span>
<span class="default"></span>
<div class="description">
<p>Fires when the chart is finished loading. The <code>this</code> keyword refers to the
chart object itself. One parameter, <code>event</code>, is passed to the function.
This contains common event information based on jQuery or MooTools depending on
which library is used as the base for Highcharts.</p>
<p>From version 2.0.4, there is also a second parameter to <code>Highcharts.Chart</code>
where a callback function can be passed to be executed on chart.load.</p>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/events-load/">Alert on chart load</a>
</div>
</div>
<div class="member">
<span class="name">redraw</span>
<span class="name-cn">重绘</span>
<span class="type">Function</span>
<span class="default"></span>
<span class="since">Since 1.2.0</span>
<div class="description">
Fires when the chart is redrawn, either after a call to chart.redraw() or after
an axis, series or point is modified with the <code>redraw</code> option set to true.
The <code>this</code> keyword refers to the
chart object itself. One parameter, <code>event</code>, is passed to the function.
This contains common event information based on jQuery or MooTools depending on
which library is used as the base for Highcharts.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/events-redraw/">Alert on chart redraw</a>
</div>
</div>
<div class="member">
<span class="name">selection</span>
<span class="name-cn">选取</span>
<span class="type">Function</span>
<span class="default"></span>
<div class="description">
<p>Fires when an area of the chart has been selected. Selection is enabled by setting
the chart's zoomType. The <code>this</code> keyword refers to the
chart object itself. One parameter, <code>event</code>, is passed to the function.
This contains common event information based on jQuery or MooTools depending on
which library is used as the base for Highcharts. The default action for the
selection event is to zoom the
chart to the selected area. It can be prevented by calling
<code>event.preventDefault()</code>.</p>
<p>Information on the selected area can be found through <code>event.xAxis</code> and
<code>event.yAxis</code>, which are arrays containing the axes of each dimension
and each axis' min and max values. The primary axes are <code>event.xAxis[0]</code>
and <code>event.yAxis[0]</code>. Remember the unit of a datetime axis is milliseconds
since 1970-01-01 00:00:00.</p>
<pre>selection: function(event) {
// log the min and max of the primary, datetime x-axis
console.log(
Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', event.xAxis[0].min),
Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', event.xAxis[0].max)
);
// log the min and max of the y axis
console.log(event.yAxis[0].min, event.yAxis[0].max);
}</pre>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/events-selection/">Report on selection and reset</a>
</div>
</div>
</div>
<div class="section">
<h2>chart.resetZoomButton</h2>
<h2>缩放重置按钮</h2>
<div class="section-description">
<p>这个按钮出现在缩放之后,允许用户进行缩放重置。</p>
</div>
<div class="member">
<span class="name">position</span>
<span class="name-cn">位置</span>
<span class="type">Object</span>
<span class="default"></span>
<span class="since">Since 2.2</span>
<div class="description">
The position of the button.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/resetzoombutton-position/">Above the plot area</a>
</div>
</div>
<div class="member">
<span class="name">relativeTo</span>
<span class="name-cn">相对于(父级元素)</span>
<span class="type">String</span>
<span class="default">"plot"</span>
<span class="since">Since 2.2</span>
<div class="description">
What frame the button should be placed related to. Can be either "plot" or "chart".
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/resetzoombutton-relativeto/">Relative to the chart</a>
</div>
</div>
<div class="member">
<span class="name">theme</span>
<span class="name-cn">主题</span>
<span class="type">Object</span>
<span class="default"></span>
<span class="since">Since 2.2</span>
<div class="description">
A collection of attributes for the button. The object takes SVG attributes like
<code>fill</code>, <code>stroke</code>, <code>stroke-width</code> or <code>r</code>,
the border radius. The theme also supports <code>style</code>,
a collection of CSS properties for the text. Equivalent attributes for the hover state
are given in <code>theme.states.hover</code>.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/resetzoombutton-theme/">Theming the button</a>
</div>
</div>
</div>
<div class="section">
<h2>title</h2>
<h2>标题</h2>
<div class="section-description">
<p>图表的主标题</p>
</div>
<div class="member">
<span class="name">align</span>
<span class="name-cn">对齐</span>
<span class="type">String</span>
<span class="default">"center"</span>
<span class="since">Since 2.0</span>
<div class="description">
The horizontal alignment of the title. Can be one of "left", "center" and "right".
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/align/">Aligned to the plot area (x = 70px
= margin left - spacing left)</a>
</div>
</div>
<div class="member">
<span class="name">floating</span>
<span class="name-cn">浮动</span>
<span class="type">Boolean</span>
<span class="default">false</span>
<span class="since">Since 2.1</span>
<div class="description">
When the title is floating, the plot area will not move to make space for it.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/chart/zoomtype-none/">False by default</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/floating/">true - title on top of the plot area</a>.
</div>
</div>
<div class="member">
<span class="name">margin</span>
<span class="name-cn">外边距</span>
<span class="type">Number</span>
<span class="default">15</span>
<span class="since">Since 2.1</span>
<div class="description">
The margin between the title and the plot area, or if a subtitle is present, the
margin between the subtitle and the plot area.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/margin-50/">A chart title margin of 50</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/margin-subtitle/">the same margin applied with a subtitle</a>.
</div>
</div>
<div class="member">
<span class="name">text</span>
<span class="name-cn">文本</span>
<span class="type">String</span>
<span class="default">"Chart title"</span>
<div class="description">
The title of the chart. To disable the title, set the <code>text</code> to <code>null</code>.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/text/">Custom title</a>
</div>
</div>
<div class="member">
<span class="name">style</span>
<span class="name-cn">样式</span>
<span class="type">CSSObject</span>
<span class="default"></span>
<div class="description">
CSS styles for the title. Use this for font styling, but use <code>align</code>,
<code>x</code> and <code>y</code>for text alignment. Defaults to:
<pre>{
color: '#3E576F',
fontSize: '16px'
}</pre>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/style/">Custom color and weight</a>
</div>
</div>
<div class="member">
<span class="name">verticalAlign</span>
<span class="name-cn">垂直对齐</span>
<span class="type">String</span>
<span class="default">"top"</span>
<span class="since">Since 2.1</span>
<div class="description">
The vertical alignment of the title. Can be one of "top", "middle" and "bottom".
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/verticalalign/">Chart title in bottom right corner</a>
</div>
</div>
<div class="member">
<span class="name">x</span>
<span class="name-cn"></span>
<span class="type">Number</span>
<span class="default">0</span>
<span class="since">Since 2.0</span>
<div class="description">
The x position of the title relative to the alignment within chart.spacingLeft and chart.spacingRight.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/align/">Aligned to the plot area (x = 70px
= margin left - spacing left)</a>
</div>
</div>
<div class="member">
<span class="name">y</span>
<span class="name-cn"></span>
<span class="type">Number</span>
<span class="default">15</span>
<span class="since">Since 2.0</span>
<div class="description">
The y position of the title relative to the alignment within chart.spacingTop and chart.spacingBottom.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/title/y/">Title inside the plot area</a>
</div>
</div>
</div>
<div class="section">
<h2>subtitle</h2>
<h2>副标题</h2>
<div class="section-description">
<p>图表的副标题</p>
</div>
<div class="member">
<span class="name">align</span>
<span class="name-cn">对齐</span>
<span class="type">String</span>
<span class="default">"center"</span>
<span class="since">Since 2.0</span>
<div class="description">
The horizontal alignment of the subtitle. Can be one of "left", "center" and "right".
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/align/">Footnote at right of plot area</a>
</div>
</div>
<div class="member">
<span class="name">floating</span>
<span class="name-cn">浮动</span>
<span class="type">Boolean</span>
<span class="default">false</span>
<span class="since">Since 2.1</span>
<div class="description">
When the subtitle is floating, the plot area will not move to make space for it.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/floating/">Floating title and subtitle</a>.
</div>
</div>
<div class="member">
<span class="name">text</span>
<span class="name-cn">文本</span>
<span class="type">String</span>
<span class="default">""</span>
<div class="description">
The subtitle of the chart.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/text/">Custom subtitle</a>,
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/text-formatted/">formatted and linked text.</a>
</div>
</div>
<div class="member">
<span class="name">style</span>
<span class="name-cn">样式</span>
<span class="type">CSSObject</span>
<span class="default"></span>
<div class="description">
CSS styles for the title. Exact positioning of the title can be achieved
by changing the margin property, or by adding <code>position: "absolute"</code> and
left and top properties. Defaults to:
<pre>{
color: '#3E576F'
}</pre>
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/style/">Custom color and weight</a>
</div>
</div>
<div class="member">
<span class="name">verticalAlign</span>
<span class="name-cn">垂直对齐</span>
<span class="type">String</span>
<span class="default">"top"</span>
<span class="since">Since 2.1</span>
<div class="description">
The vertical alignment of the title. Can be one of "top", "middle" and "bottom".
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/verticalalign/">Footnote at right bottom of plot area</a>
</div>
</div>
<div class="member">
<span class="name">x</span>
<span class="name-cn"></span>
<span class="type">Number</span>
<span class="default">0</span>
<span class="since">Since 2.0</span>
<div class="description">
The x position of the subtitle relative to the alignment within chart.spacingLeft and chart.spacingRight.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/align/">Footnote at right of plot area</a>
</div>
</div>
<div class="member">
<span class="name">y</span>
<span class="name-cn"></span>
<span class="type">Number</span>
<span class="default">30</span>
<span class="since">Since 2.0</span>
<div class="description">
The y position of the subtitle relative to the alignment within chart.spacingTop and chart.spacingBottom.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/subtitle/verticalalign/">Footnote at right bottom of plot area</a>
</div>
</div>
</div>
<div class="section">
<h2>xAxis</h2>
<h2>x轴</h2>
<div class="section-description">
<p>X轴 或 类目轴。正常情况下这是一个水平方向的轴线, 但如果图表设置为反向的,这就是垂直方向的轴线。假使有多个轴线,x轴线节点是一个可配置的对象数组。</p>
<p>更多选项见 <a class="internal" href="#axis-object">the Axis object</a></p>
</div>
<div class="member">
<span class="name">allowDecimals</span>
<span class="name-cn">允许小数</span>
<span class="type">Boolean</span>
<span class="default">true</span>
<span class="since">Since 2.0</span>
<div class="description">
Whether to allow decimals in this axis' ticks. When counting integers, like
persons or hits on a web page, decimals must be avoided in the axis tick
labels.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/yaxis/allowdecimals-true/">True by default</a> (unwanted for this
type of data),
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/yaxis/allowdecimals-false/">false</a>
</div>
</div>
<div class="member">
<span class="name">alternateGridColor</span>
<span class="name-cn">网格颜色交替</span>
<span class="type">Color</span>
<span class="default">null</span>
<div class="description">
When using an alternate grid color, a band is painted across the plot area
between every other grid line. Minor grid lines do not affect it.
</div>
<div class="demo">
<a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/yaxis/alternategridcolor/">Alternate grid color on the Y axis</a>
</div>
</div>
<div class="member">
<span class="name">categories</span>
<span class="name-cn">类目</span>
<span class="type">Array</span>
<span class="default">[]</span>