TimeChart Legend
Use legend to show or hide some series.
HTML
HTML
<script src="https://cdn.zoomcharts-cloud.com/1/nightly/zoomcharts.js"></script>
<div id="demo"></div>
CSS
CSS
//No CSS for this example
JavaScript
JavaScript
var t = new TimeChart(
{
container: document.getElementById("demo"),
data:
{
units:["m"],
url: "/dvsl/data/time-chart/uk.json",
timestampInSeconds: true
},
legend:{
enabled:true
},
series:[
{
enabled: false,
name:"Price ALL",
id:"series1",
type:"line",
data:{ index: 1 },
style: {lineColor: "red", marker: {shape: "circle"}}
},
{
name:"Price New",
id:"series2",
type:"columns",
data:{
index:2
},
style:
{
fillColor : "#77c277",
lineColor: "#67ad67",
lineWidth : 1,
padding: [2,2]
}
},
{
name:"Price Modern",
id:"series3",
type:"columns",
data:{
index:3
},
style:
{
fillColor : "#59a3c0",
lineColor: "#4b93b1",
lineWidth : 1,
padding: [2,2]
}
},
{
name:"Average price Older",
id:"series4",
type:"line",
data:{
index:4
},
style: {
fillColor: "rgba(200,200,255,0.3)",
lineColor: "blue"
}
}
]
}
);
Data
Data
Download Data
{
"unit": "m",
"values": [
[
-536425200,
1890.74,
2106.55,
2019.61,
1523.81
],
[
-531327600,
1890.74,
2106.55,
2001.74,
1541.74
],
[
-523378800,
1890.74,
2106.55,
2001.74,
1541.74
],
[
-515430000,
1881.43,
2116.63,
2001.74,
1523.81
],
[
-504889200,
1872.11,
2116.63,
1974.93,
1541.74
],
[
-499791600,
1862.8,
2116.63,
1957.06,
1523.81
],
[
-491842800,
1872.11,
2116.63,
1983.86,
1514.85
],
[
-483894000,
1862.8,
2126.71,
1948.12,
1523.81
],
[
-473353200,
1853.48,
2126.71,
1939.18,
1514.85
],
[
-468255600,
1900.05,
2167.03,
1983.86,
1568.63
],
[
-460306800,
1937.31,
2217.42,
2037.48,
1577.59
],
[
-452358000,
1937.31,
2217.42,
2037.48,
1586.56
],
[
-441817200,
1937.31,
2217.42,
2028.55,
1586.56
],
[
-436633200,
1974.57,
2277.9,
2082.16,
1595.52
],
[
-428684400,
2002.51,
2318.21,
2108.97,
1631.37
],
[
-420735600,
2002.51,
2318.21,
2108.97,
1631.37
],
[
-410194800,
2002.51,
2328.29,
2100.04,
1631.37
],
[
-405097200,
2021.14,
2348.45,
2108.97,
1658.26
],
[
-397148400,
2021.14,
2368.61,
2100.04,
1667.23
],
[
-389199600,
2030.45,
2378.69,
2108.97,
1667.23
],
[
-378658800,
2030.45,
2398.85,
2108.97,
1667.23
],
[
-373561200,
2049.08,
2408.93,
2117.91,
1685.16
],
[
-365612400,
2049.08,
2408.93,
2108.97,
1694.12
],
[
-357663600,
2058.39,
2419,
2135.78,
1694.12
],
[
-347122800,
2067.71,
2429.08,
2144.72,
1703.08
],
[
-342025200,
2077.02,
2439.16,
2144.72,
1721.01
],
[
-334076400,
2104.96,
2459.32,
2171.53,
1747.9
],
[
-326127600,
2123.59,
2489.56,
2189.4,
1756.86
],
[
-315586800,
2170.16,
2560.11,
2243.02,
1783.76
],
[
-310402800,
2188.79,
2600.43,
2260.89,
1810.65
],
[
-302454000,
2235.36,
2660.91,
2296.64,
1855.46
],
[
-294505200,
2300.56,
2721.38,
2386,
1891.32
],
[
-283964400,
2328.5,
2761.7,
2403.87,
1927.17
],
[
-278866800,
2403.01,
2892.73,
2484.3,
1963.03
],
[
-270918000,
2440.27,
2922.96,
2502.17,
2025.77
],
[
-262969200,
2468.21,
2933.04,
2520.04,
2070.59
],
[
-252428400,
2542.72,
2973.36,
2618.34,
2115.41
],
[
-247330800,
2552.03,
2993.52,
2627.28,
2124.37
],
[
-239382000,
2598.6,
3084.23,
2663.03,
2169.19
],
[
-231433200,
2645.17,
3124.55,
2707.71,
2205.04
],
[
-220892400,
2673.11,
3154.79,
2725.58,
2240.9
],
[
-215794800,
2747.63,
3185.02,
2832.82,
2294.68
],
[
-207846000,
2822.14,
3255.58,
2922.18,
2357.43
],
[
-199897200,
2850.08,
3285.81,
2957.92,
2375.35
],
[
-189356400,
2943.22,
3326.13,
3074.1,
2456.02
],
[
-184172400,
2999.1,
3376.53,
3100.91,
2527.73
],
[
-176223600,
3092.24,
3457.16,
3217.08,
2581.52
],
[
-168274800,
3138.81,
3578.11,
3243.89,
2635.3
],
[
-157734000,
3185.38,
3598.27,
3333.25,
2635.3
],
[
-152636400,
3269.21,
3699.06,
3476.23,
2644.26
],
[
-144687600,
3343.72,
3799.85,
3494.1,
2778.71
],
[
-136738800,
3380.98,
3840.17,
3511.98,
2814.57
],
[
-126198000,
3418.23,
3860.33,
3592.4,
2823.53
],
[
-121100400,
3464.8,
3890.57,
3654.96,
2832.5
],
[
-113151600,
3557.94,
3991.36,
3726.45,
2957.99
],
[
-105202800,
3557.94,
4061.91,
3753.26,
2895.24
],
[
-94662000,
3585.89,
4112.31,
3726.45,
2966.95
],
[
-89564400,
3641.77,
4182.86,
3806.88,
2993.84
],
[
-81615600,
3697.65,
4223.18,
3878.37,
3038.66
],
[
-73666800,
3762.85,
4243.34,
3940.92,
3128.29
],
[
-63126000,
3837.36,
4334.05,
4003.47,
3200
],
[
-57942000,
3902.56,
4344.13,
4083.9,
3271.71
],
[
-49993200,
3995.7,
4495.32,
4182.2,
3325.49
],
[
-42044400,
4051.59,
4606.19,
4200.07,
3397.2
],
[
-31503600,
4088.84,
4656.58,
4235.82,
3424.09
],
[
-26406000,
4144.73,
4656.58,
4307.31,
3495.8
],
[
-18457200,
4200.61,
4696.9,
4378.8,
3531.66
],
[
-10508400,
4228.55,
4797.69,
4369.86,
3576.47
],
[
32400,
4312.38,
4848.09,
4477.1,
3630.26
],
[
5130000,
4377.57,
4938.8,
4521.78,
3710.93
],
[
13078800,
4452.09,
4948.88,
4620.08,
3773.67
],
[
21027600,
4507.97,
5079.91,
4629.02,
3845.38
],
[
31568400,
4582.48,
5160.54,
4718.38,
3908.13
],
[
36666000,
4740.82,
5352.05,
4888.17,
4042.58
],
[
44614800,
4908.47,
5583.87,
5066.9,
4159.11
],
[
52563600,
5243.78,
5916.48,
5406.48,
4472.83
],
[
63104400,
5532.51,
6239.02,
5746.06,
4670.03
],
[
68288400,
6007.52,
6732.9,
6201.81,
5136.14
],
[
76237200,
6557.05,
7267.09,
6836.29,
5530.54
],
[
84186000,
7395.31,
8395.96,
7631.62,
6256.59
],
[
94726800,
7879.63,
9091.43,
8078.44,
6686.84
],
[
99824400,
8395.68,
9844.5,
8551.42,
7146.68
],
[
107773200,
8832.07,
10231.99,
9067.22,
7474.84
],
[
115722000,
9183.07,
10504.29,
9438.23,
7793.89
],
[
126262800,
9767.45,
11087.63,
9817.39,
8352.68
],
[
131360400,
9927.77,
11241.58,
9986.61,
8495.8
],
[
139309200,
10027.38,
11373.54,
10024.61,
8648.03
],
[
147258000,
10147.86,
11449.99,
10108.77,
8829.43
],
[
157798800,
10207.63,
11625.93,
10165.78,
8876.83
],
[
162896400,
10387.88,
11779.88,
10278.89,
9095.61
],
[
170845200,
10728.45,
12264.78,
10626.38,
9333.53
],
[
178794000,
10977.95,
12627.14,
10871.61,
9534.07
],
[
189334800,
11288.16,
13144.5,
11201,
9724.59
],
[
194518800,
11518.68,
13462.87,
11417.27,
9924.22
],
[
202467600,
11738.78,
13792.77,
11586.49,
10143.91
],
[
210416400,
11998.71,
14134.18,
11915.88,
10257.86
],
[
220957200,
12209.31,
14508.07,
12057.05,
10467.52
],
[
226054800,
12409.48,
14815.97,
12236.22,
10658.04
],
[
234003600,
12689.34,
15267.35,
12490.5,
10857.67
],
[
241952400,
12970.14,
15641.23,
12744.78,
11114.73
],
[
252493200,
13150.39,
16125.08,
12904.95,
11200.42
],
[
257590800,
13820.15,
16850.85,
13572.77,
11791.11
],
[
265539600,
14490.85,
17576.62,
14250.55,
12371.78
],
[
273488400,
15911.95,
19215.62,
15822.38,
13467.48
],
[
284029200,
16822.67,
20282.81,
16735.44,
14296.1
],
[
289126800,
17793.15,
21657.89,
17620.44,
15210.4
],
[
297075600,
19074.8,
22923.02,
18899.99,
16420.05
],
[
305024400,
20485.46,
24715.97,
20180.44,
17801.07
],
[
315565200,
21966.33,
26123.53,
21733.27,
19143.81
],
[
320749200,
22676.88,
27838.98,
23067.11,
19605.06
],
[
328698000,
23347.58,
28829.72,
22985.67,
20220.37
],
[
336646800,
23628.39,
29313.56,
23229.99,
20496.57
],
[
347187600,
23497.47,
29467.51,
23069.82,
20372.6
],
[
352285200,
23729.9,
30481.29,
23487.89,
20443.7
],
[
360230400,
24097.98,
30985.03,
23813.66,
20801.04
],
[
368179200,
24188.1,
30875.07,
24039.89,
20820.18
],
[
378723600,
23798.2,
31556.85,
23578.38,
20334.31
],
[
383821200,
24176.72,
32106.68,
23804.61,
20715.35
],
[
391766400,
24678.56,
32426.1,
24482.39,
21211.24
],
[
399715200,
24968.85,
32723.53,
24942.99,
21419.99
],
[
410259600,
25579.79,
33471.29,
25536.61,
22029.83
],
[
415357200,
26307.42,
33868.21,
26332.03,
22665.19
],
[
423302400,
27386.05,
35323.94,
27359.1,
23594.07
],
[
431251200,
28175.34,
36136.64,
28201.58,
24296.89
],
[
441795600,
28623.11,
37085.48,
28570.78,
24591.33
],
[
446979600,
29675.18,
38101.35,
29676.58,
25769.98
],
[
454924800,
30832.55,
39218.8,
30887.36,
26880.27
],
[
462873600,
31253.75,
39455.49,
31440.26,
27378.9
],
[
473418000,
32542.99,
40945.78,
32625.69,
28376.15
],
[
478515600,
33200.41,
42334.48,
33046.47,
28965.94
],
[
486460800,
34173.74,
43080.15,
34047.31,
29894.82
],
[
494409600,
34700.25,
43994.43,
34573.97,
30347.87
],
[
504954000,
35436.42,
45416.65,
35180.26,
31027.9
],
[
510051600,
35647.02,
45484.72,
35285.23,
31367.91
],
[
517996800,
37014.99,
46906.94,
36680.6,
32682.39
],
[
525945600,
38251.1,
48668.47,
37866.04,
33748.01
],
[
536490000,
39593.46,
50395.45,
39366.38,
34949.46
],
[
541587600,
40881.75,
50903.38,
40472.18,
36467.22
],
[
549532800,
42986.84,
53206.37,
42500.09,
38371.48
],
[
557481600,
44433.55,
54933.34,
43921.71,
39798.99
],
[
568026000,
44354.81,
55374.25,
43632.13,
39663.17
],
[
573210000,
45090.97,
55712.52,
44632.97,
39798.99
],
[
581155200,
48932.12,
60318.49,
48530.42,
43086.1
],
[
589104000,
54351.84,
66753.02,
54454.88,
47459.8
],
[
599648400,
57245.27,
71020.72,
57667.32,
49839.9
],
[
604746000,
59534.39,
71495.14,
59458.14,
52967.48
],
[
612694800,
62243.78,
72714.18,
62059.76,
55598.26
],
[
620643600,
62781.67,
72366.48,
61551.2,
56785.12
],
[
631188000,
61495.28,
71515.04,
60666.19,
55824.33
],
[
636285600,
59586.57,
69451.88,
59038.26,
54338.48
],
[
644230800,
58982.27,
68243.31,
58508.88,
54054.98
],
[
652179600,
57245.27,
67295.52,
57422.08,
52333.03
],
[
662724000,
54919.14,
64970.54,
55767.91,
49901.88
],
[
667821600,
54547.25,
64397.28,
55918.38,
49196.78
],
[
675766800,
55418.46,
65746.16,
55793.01,
50959.67
],
[
683715600,
54903.25,
65051.8,
56139.06,
50085.35
],
[
694260000,
53635.13,
63579.6,
54789.74,
49074.09
],
[
699444000,
52186.62,
63910.87,
53593.17,
47123.84
],
[
707389200,
52663.03,
63508.58,
53689.01,
48028.14
],
[
715338000,
52243.05,
63153.94,
53179.43,
47822.08
],
[
725882400,
50168.08,
61071.14,
51034.42,
45665.17
],
[
730980000,
50128.38,
61621.32,
51543.78,
44619.36
],
[
738925200,
51918.14,
62930.86,
52671.87,
47361.81
],
[
746874000,
51746.26,
61562,
52259.61,
48049.43
],
[
757418400,
51049.87,
60007.79,
52037.78,
47183.06
],
[
762516000,
51326.71,
62084.45,
52363.32,
46997.32
],
[
770461200,
51361.9,
59101.54,
52477.13,
47404.32
],
[
778410000,
51731.09,
58687.49,
52807.82,
47785.91
],
[
788954400,
52113.53,
61585.89,
52703.13,
47811.46
],
[
794052000,
51084.05,
62242.9,
51845.35,
47299.95
],
[
801997200,
51633,
62020,
52452,
47850
],
[
809946000,
51334,
63301,
52415,
46909
],
[
820490400,
50930,
62772,
51545,
46801
],
[
825674400,
51367,
62302,
52097,
47136
],
[
833619600,
53032,
65530,
53624,
46895
],
[
841568400,
54008,
68613,
54555,
49293
],
[
852112800,
55169,
70210,
55408,
50520
],
[
857210400,
55810,
70549,
56399,
50948
],
[
865155600,
58403,
71892,
58651,
53802
],
[
873104400,
60754,
73284,
60618,
56653
],
[
883648800,
61830,
75462,
61443,
57763
],
[
888746400,
62903,
74853,
62817,
58867
],
[
896691600,
65221,
75618,
65234,
61286
],
[
904640400,
66366,
78354,
65856,
62685
],
[
915184800,
66312.86,
78804.24,
65961.99,
62568.34
],
[
920282400,
67477.56,
79649.85,
67182.5,
63750.75
],
[
928227600,
70009.88,
80886.16,
69583,
66558.89
],
[
936176400,
72362.18,
83916.71,
71855.34,
69018.14
],
[
946720800,
74637.6,
86140.65,
74283.41,
71149.01
],
[
951904800,
77697.68,
89014.91,
77208.01,
74285.13
],
[
959853600,
81201.67,
90382.61,
80893.17,
77808.25
],
[
967802400,
80935.43,
92207.28,
80755.68,
77929.98
],
[
978343200,
81628.07,
92950,
81580,
78035
],
[
983440800,
83976.27,
95641.35,
83297.22,
80656.34
],
[
991386000,
87637.82,
97533.93,
87481.76,
84471.78
],
[
999334800,
91048.8,
101312.21,
90658.72,
87562.34
],
[
1009879200,
92533,
104461.58,
92449.94,
88655.94
],
[
1014976800,
95356,
106735.41,
95848.58,
91440.94
],
[
1022922000,
103501,
113801,
103335,
99562
],
[
1030870800,
110830,
119508,
110900,
106987
],
[
1041415200,
115940,
125937.09,
116788.85,
112528.09
],
[
1046512800,
119937.97,
130705.36,
121304.23,
116675.61
],
[
1054458000,
125381.89,
133711.4,
126292.21,
122519.62
],
[
1062406800,
129760.81,
136027.35,
130090.02,
126581.21
],
[
1072951200,
133902.72,
140892.18,
134301.99,
130638
],
[
1078135200,
140224.73,
147414.63,
140045.11,
136709.63
],
[
1086080400,
148462.17,
154906.93,
148931.11,
146622.56
],
[
1094029200,
153481.9,
162816.24,
153976,
151484.08
],
[
1104573600,
152464.44,
162451.38,
152734.59,
151336.77
],
[
1109671200,
152790.21,
161567.08,
153281.18,
151768.39
],
[
1117616400,
157493.99,
164342.15,
156364.2,
156530.43
],
[
1125565200,
157627.18,
165284.36,
155490.75,
155038.4
],
[
1136109600,
157387.17,
166979.63,
155296.87,
154192.89
],
[
1141207200,
160318.92,
166856.82,
158302.97,
157789.13
],
[
1149152400,
165034.94,
172687.6,
162339.87,
163249.1
],
[
1157101200,
168459.89,
175385.75,
165907.43,
166402.04
],
[
1167645600,
172064.56,
180963.75,
169065.52,
170301.82
],
[
1172743200,
175554.05,
184424.36,
172247.26,
174591.12
],
[
1180688400,
181810.42,
190213.69,
169967.24,
181301.66
],
[
1188637200,
184130.88,
190476.46,
172398.42,
183184.86
],
[
1199181600,
183958.91,
192268.46,
171752.54,
183599.19
],
[
1204365600,
179363.09,
190798.05,
167812.11,
178617.91
],
[
1212310800,
174514.49,
186532.81,
163415.95,
173908.5
],
[
1220259600,
165188.45,
175603.92,
154404.52,
164681.81
],
[
1230804000,
156827.58,
164457.44,
146511.72,
156217.1
],
[
1235901600,
149709.13,
159691.42,
139958.17,
147536.74
],
[
1243846800,
154066.04,
157933.75,
143531.66,
153671.43
],
[
1251795600,
160158.67,
163534.38,
149108.15,
159614.99
],
[
1262340000,
162116.1,
164433.12,
150745.7,
162602.27
],
[
1267437600,
162886.95,
168345.64,
151619.84,
162497.9
],
[
1275382800,
168719.1,
169098.24,
156433.26,
170079.69
],
[
1283331600,
167354,
171903.63,
154792.98,
169421.19
],
[
1293876000,
162971.31,
167395,
151840.24,
162892.31
],
[
1298973600,
162378.86,
167779.18,
151176.6,
162490.97
],
[
1306918800,
166763.77,
171473.36,
154469.19,
168278.16
],
[
1314867600,
166596.75,
170262.87,
154102.99,
168895.24
],
[
1325412000,
164784.71,
172706.5,
152432.32,
166107.33
],
[
1330596000,
162721.89,
173044.98,
150532.11,
163839.94
],
[
1338541200,
164954.82,
175697.27,
152059.26,
167422.85
],
[
1346490000,
163910.34,
172052.36,
151359.79,
166350.94
],
[
1357034400,
162923.99,
173336.54,
150301.88,
165275.76
],
[
1362132000,
163055.69,
174064.22,
151027.96,
164405.7
]
]
}