-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathLegendElement.html
53 lines (53 loc) · 72.6 KB
/
LegendElement.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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Interface: LegendElement | Chart.js</title>
<meta name="generator" content="VuePress 1.9.7">
<link rel="icon" href="/docs/next/favicon.ico">
<meta name="description" content="Open source HTML5 Charts for your website">
<link rel="preload" href="/docs/next/assets/css/0.styles.32b47955.css" as="style"><link rel="preload" href="/docs/next/assets/js/app.79ca5bdb.js" as="script"><link rel="preload" href="/docs/next/assets/js/2.5288603d.js" as="script"><link rel="preload" href="/docs/next/assets/js/80.a68f1097.js" as="script"><link rel="prefetch" href="/docs/next/assets/js/10.fb5e13f1.js"><link rel="prefetch" href="/docs/next/assets/js/100.29d79c56.js"><link rel="prefetch" href="/docs/next/assets/js/101.9684e51f.js"><link rel="prefetch" href="/docs/next/assets/js/102.0d12d2f7.js"><link rel="prefetch" href="/docs/next/assets/js/103.100effdb.js"><link rel="prefetch" href="/docs/next/assets/js/104.24a8af70.js"><link rel="prefetch" href="/docs/next/assets/js/105.2c90bfa6.js"><link rel="prefetch" href="/docs/next/assets/js/106.35728af1.js"><link rel="prefetch" href="/docs/next/assets/js/107.0b85f7c5.js"><link rel="prefetch" href="/docs/next/assets/js/108.445273e7.js"><link rel="prefetch" href="/docs/next/assets/js/109.0b503640.js"><link rel="prefetch" href="/docs/next/assets/js/11.7083b42b.js"><link rel="prefetch" href="/docs/next/assets/js/110.284b9fef.js"><link rel="prefetch" href="/docs/next/assets/js/111.2aaeed25.js"><link rel="prefetch" href="/docs/next/assets/js/112.6307ce4c.js"><link rel="prefetch" href="/docs/next/assets/js/113.ecc135a0.js"><link rel="prefetch" href="/docs/next/assets/js/114.f3e18022.js"><link rel="prefetch" href="/docs/next/assets/js/115.b9b878a5.js"><link rel="prefetch" href="/docs/next/assets/js/116.8a5413c9.js"><link rel="prefetch" href="/docs/next/assets/js/117.b6a3f725.js"><link rel="prefetch" href="/docs/next/assets/js/118.638ca772.js"><link rel="prefetch" href="/docs/next/assets/js/119.3a6c7f58.js"><link rel="prefetch" href="/docs/next/assets/js/12.26a4a094.js"><link rel="prefetch" href="/docs/next/assets/js/120.133613bd.js"><link rel="prefetch" href="/docs/next/assets/js/121.38879b52.js"><link rel="prefetch" href="/docs/next/assets/js/122.e70efb25.js"><link rel="prefetch" href="/docs/next/assets/js/123.ecf4e45b.js"><link rel="prefetch" href="/docs/next/assets/js/124.3c22d3b7.js"><link rel="prefetch" href="/docs/next/assets/js/125.bcb07e8e.js"><link rel="prefetch" href="/docs/next/assets/js/126.780108e9.js"><link rel="prefetch" href="/docs/next/assets/js/127.0c43adf3.js"><link rel="prefetch" href="/docs/next/assets/js/128.b1e5c392.js"><link rel="prefetch" href="/docs/next/assets/js/129.722d462a.js"><link rel="prefetch" href="/docs/next/assets/js/13.366ee7a8.js"><link rel="prefetch" href="/docs/next/assets/js/130.d8a5df29.js"><link rel="prefetch" href="/docs/next/assets/js/131.f6874f18.js"><link rel="prefetch" href="/docs/next/assets/js/132.9696793d.js"><link rel="prefetch" href="/docs/next/assets/js/133.99b10526.js"><link rel="prefetch" href="/docs/next/assets/js/134.863416f6.js"><link rel="prefetch" href="/docs/next/assets/js/135.8adfc484.js"><link rel="prefetch" href="/docs/next/assets/js/136.00065c13.js"><link rel="prefetch" href="/docs/next/assets/js/137.4979ab54.js"><link rel="prefetch" href="/docs/next/assets/js/138.af5623db.js"><link rel="prefetch" href="/docs/next/assets/js/139.bb089116.js"><link rel="prefetch" href="/docs/next/assets/js/14.d5249207.js"><link rel="prefetch" href="/docs/next/assets/js/140.053942e3.js"><link rel="prefetch" href="/docs/next/assets/js/141.a610217a.js"><link rel="prefetch" href="/docs/next/assets/js/142.048c867e.js"><link rel="prefetch" href="/docs/next/assets/js/143.ff135b00.js"><link rel="prefetch" href="/docs/next/assets/js/144.cb3e808c.js"><link rel="prefetch" href="/docs/next/assets/js/145.0330bb10.js"><link rel="prefetch" href="/docs/next/assets/js/146.b9aa19ba.js"><link rel="prefetch" href="/docs/next/assets/js/147.88f18081.js"><link rel="prefetch" href="/docs/next/assets/js/148.7260d909.js"><link rel="prefetch" href="/docs/next/assets/js/149.049ebc71.js"><link rel="prefetch" href="/docs/next/assets/js/15.6e9e863d.js"><link rel="prefetch" href="/docs/next/assets/js/150.72de6801.js"><link rel="prefetch" href="/docs/next/assets/js/151.9a1222f4.js"><link rel="prefetch" href="/docs/next/assets/js/152.e4ef640c.js"><link rel="prefetch" href="/docs/next/assets/js/153.842b37f8.js"><link rel="prefetch" href="/docs/next/assets/js/154.dcc1bf83.js"><link rel="prefetch" href="/docs/next/assets/js/155.808f1186.js"><link rel="prefetch" href="/docs/next/assets/js/156.4950bea1.js"><link rel="prefetch" href="/docs/next/assets/js/157.3e45bbac.js"><link rel="prefetch" href="/docs/next/assets/js/158.c21206a1.js"><link rel="prefetch" href="/docs/next/assets/js/159.3a4b3de1.js"><link rel="prefetch" href="/docs/next/assets/js/16.620ac2aa.js"><link rel="prefetch" href="/docs/next/assets/js/160.cbd9a6fd.js"><link rel="prefetch" href="/docs/next/assets/js/161.b755d895.js"><link rel="prefetch" href="/docs/next/assets/js/162.6faf871b.js"><link rel="prefetch" href="/docs/next/assets/js/163.49a712af.js"><link rel="prefetch" href="/docs/next/assets/js/164.e19eefad.js"><link rel="prefetch" href="/docs/next/assets/js/165.db7347fa.js"><link rel="prefetch" href="/docs/next/assets/js/166.81f1fd29.js"><link rel="prefetch" href="/docs/next/assets/js/167.e534233d.js"><link rel="prefetch" href="/docs/next/assets/js/168.03442a9b.js"><link rel="prefetch" href="/docs/next/assets/js/169.6811b2e2.js"><link rel="prefetch" href="/docs/next/assets/js/17.f9d4794b.js"><link rel="prefetch" href="/docs/next/assets/js/170.94c8dda0.js"><link rel="prefetch" href="/docs/next/assets/js/171.93191d1c.js"><link rel="prefetch" href="/docs/next/assets/js/172.7c6be1c4.js"><link rel="prefetch" href="/docs/next/assets/js/173.e74991cf.js"><link rel="prefetch" href="/docs/next/assets/js/174.b4506ab4.js"><link rel="prefetch" href="/docs/next/assets/js/175.dd0055c2.js"><link rel="prefetch" href="/docs/next/assets/js/176.ba30e45c.js"><link rel="prefetch" href="/docs/next/assets/js/177.6c95ad89.js"><link rel="prefetch" href="/docs/next/assets/js/178.3643eab4.js"><link rel="prefetch" href="/docs/next/assets/js/179.4ebe3d02.js"><link rel="prefetch" href="/docs/next/assets/js/18.3f871121.js"><link rel="prefetch" href="/docs/next/assets/js/180.3734648f.js"><link rel="prefetch" href="/docs/next/assets/js/181.32f6af14.js"><link rel="prefetch" href="/docs/next/assets/js/182.0d1dc780.js"><link rel="prefetch" href="/docs/next/assets/js/183.6cb28f4f.js"><link rel="prefetch" href="/docs/next/assets/js/184.2e06acee.js"><link rel="prefetch" href="/docs/next/assets/js/185.b48c9559.js"><link rel="prefetch" href="/docs/next/assets/js/186.581b5457.js"><link rel="prefetch" href="/docs/next/assets/js/187.378d638b.js"><link rel="prefetch" href="/docs/next/assets/js/188.3638c48e.js"><link rel="prefetch" href="/docs/next/assets/js/189.22440fc9.js"><link rel="prefetch" href="/docs/next/assets/js/19.d4506b63.js"><link rel="prefetch" href="/docs/next/assets/js/190.e44737e3.js"><link rel="prefetch" href="/docs/next/assets/js/191.3ea32821.js"><link rel="prefetch" href="/docs/next/assets/js/192.b3b8859a.js"><link rel="prefetch" href="/docs/next/assets/js/193.96c5c443.js"><link rel="prefetch" href="/docs/next/assets/js/194.8e737951.js"><link rel="prefetch" href="/docs/next/assets/js/195.ec106947.js"><link rel="prefetch" href="/docs/next/assets/js/196.e05df418.js"><link rel="prefetch" href="/docs/next/assets/js/197.b607bf8b.js"><link rel="prefetch" href="/docs/next/assets/js/198.012643a1.js"><link rel="prefetch" href="/docs/next/assets/js/199.d3bd5339.js"><link rel="prefetch" href="/docs/next/assets/js/20.3ec0ad7f.js"><link rel="prefetch" href="/docs/next/assets/js/200.beca8001.js"><link rel="prefetch" href="/docs/next/assets/js/201.ffb93323.js"><link rel="prefetch" href="/docs/next/assets/js/202.93e30a8c.js"><link rel="prefetch" href="/docs/next/assets/js/203.2b1c70de.js"><link rel="prefetch" href="/docs/next/assets/js/204.13e158bc.js"><link rel="prefetch" href="/docs/next/assets/js/205.073b94a1.js"><link rel="prefetch" href="/docs/next/assets/js/206.edf16331.js"><link rel="prefetch" href="/docs/next/assets/js/207.bd1ef1bf.js"><link rel="prefetch" href="/docs/next/assets/js/208.78ba2dba.js"><link rel="prefetch" href="/docs/next/assets/js/209.ed3eb7b2.js"><link rel="prefetch" href="/docs/next/assets/js/21.492881f9.js"><link rel="prefetch" href="/docs/next/assets/js/210.909f0fb0.js"><link rel="prefetch" href="/docs/next/assets/js/211.280caeca.js"><link rel="prefetch" href="/docs/next/assets/js/212.782948b6.js"><link rel="prefetch" href="/docs/next/assets/js/213.2bbda299.js"><link rel="prefetch" href="/docs/next/assets/js/214.20e42842.js"><link rel="prefetch" href="/docs/next/assets/js/215.24b3bd89.js"><link rel="prefetch" href="/docs/next/assets/js/216.bc1e098a.js"><link rel="prefetch" href="/docs/next/assets/js/217.d63d8f79.js"><link rel="prefetch" href="/docs/next/assets/js/218.3c6dc5d5.js"><link rel="prefetch" href="/docs/next/assets/js/219.7af47c97.js"><link rel="prefetch" href="/docs/next/assets/js/22.19b1ef88.js"><link rel="prefetch" href="/docs/next/assets/js/220.c09d14b9.js"><link rel="prefetch" href="/docs/next/assets/js/221.c7e033ab.js"><link rel="prefetch" href="/docs/next/assets/js/222.105acb37.js"><link rel="prefetch" href="/docs/next/assets/js/223.1a8bbb8c.js"><link rel="prefetch" href="/docs/next/assets/js/224.a62aa6de.js"><link rel="prefetch" href="/docs/next/assets/js/225.ce55392d.js"><link rel="prefetch" href="/docs/next/assets/js/226.fb27cdb4.js"><link rel="prefetch" href="/docs/next/assets/js/227.9959b8a2.js"><link rel="prefetch" href="/docs/next/assets/js/228.3d216901.js"><link rel="prefetch" href="/docs/next/assets/js/229.5a942b8c.js"><link rel="prefetch" href="/docs/next/assets/js/23.bd5eb474.js"><link rel="prefetch" href="/docs/next/assets/js/230.672ccc4d.js"><link rel="prefetch" href="/docs/next/assets/js/231.e0c505f2.js"><link rel="prefetch" href="/docs/next/assets/js/232.70f4212f.js"><link rel="prefetch" href="/docs/next/assets/js/233.89747115.js"><link rel="prefetch" href="/docs/next/assets/js/234.10d4f748.js"><link rel="prefetch" href="/docs/next/assets/js/235.00cba1d0.js"><link rel="prefetch" href="/docs/next/assets/js/236.27ed9b91.js"><link rel="prefetch" href="/docs/next/assets/js/237.96407852.js"><link rel="prefetch" href="/docs/next/assets/js/238.1afcee34.js"><link rel="prefetch" href="/docs/next/assets/js/239.0e1729c8.js"><link rel="prefetch" href="/docs/next/assets/js/24.74e1cdb1.js"><link rel="prefetch" href="/docs/next/assets/js/240.0a2b169c.js"><link rel="prefetch" href="/docs/next/assets/js/241.aa13395e.js"><link rel="prefetch" href="/docs/next/assets/js/242.8f8eccc9.js"><link rel="prefetch" href="/docs/next/assets/js/243.48012e71.js"><link rel="prefetch" href="/docs/next/assets/js/244.cc7e5f71.js"><link rel="prefetch" href="/docs/next/assets/js/245.6596ac5d.js"><link rel="prefetch" href="/docs/next/assets/js/246.d35395a0.js"><link rel="prefetch" href="/docs/next/assets/js/247.0b0373ff.js"><link rel="prefetch" href="/docs/next/assets/js/248.37fa605a.js"><link rel="prefetch" href="/docs/next/assets/js/249.18983e35.js"><link rel="prefetch" href="/docs/next/assets/js/25.1ec18ce8.js"><link rel="prefetch" href="/docs/next/assets/js/250.01c032f1.js"><link rel="prefetch" href="/docs/next/assets/js/251.a9f45647.js"><link rel="prefetch" href="/docs/next/assets/js/252.fdda4827.js"><link rel="prefetch" href="/docs/next/assets/js/253.3d26ab69.js"><link rel="prefetch" href="/docs/next/assets/js/254.a1f8b18d.js"><link rel="prefetch" href="/docs/next/assets/js/255.bde6fa8f.js"><link rel="prefetch" href="/docs/next/assets/js/256.d62b2908.js"><link rel="prefetch" href="/docs/next/assets/js/257.9158249b.js"><link rel="prefetch" href="/docs/next/assets/js/258.75bbfb48.js"><link rel="prefetch" href="/docs/next/assets/js/259.f9cb463a.js"><link rel="prefetch" href="/docs/next/assets/js/26.fd6b425f.js"><link rel="prefetch" href="/docs/next/assets/js/260.c74ab442.js"><link rel="prefetch" href="/docs/next/assets/js/261.ef5a63c2.js"><link rel="prefetch" href="/docs/next/assets/js/27.bb21a5ac.js"><link rel="prefetch" href="/docs/next/assets/js/28.324bfce6.js"><link rel="prefetch" href="/docs/next/assets/js/29.23fe84aa.js"><link rel="prefetch" href="/docs/next/assets/js/3.231e388d.js"><link rel="prefetch" href="/docs/next/assets/js/30.01f4c09f.js"><link rel="prefetch" href="/docs/next/assets/js/31.875081a0.js"><link rel="prefetch" href="/docs/next/assets/js/32.dcd3ceca.js"><link rel="prefetch" href="/docs/next/assets/js/33.5e63cad5.js"><link rel="prefetch" href="/docs/next/assets/js/34.bceed015.js"><link rel="prefetch" href="/docs/next/assets/js/35.2415aafe.js"><link rel="prefetch" href="/docs/next/assets/js/36.6098ab9b.js"><link rel="prefetch" href="/docs/next/assets/js/37.68a3e72f.js"><link rel="prefetch" href="/docs/next/assets/js/38.000173ad.js"><link rel="prefetch" href="/docs/next/assets/js/39.32d13090.js"><link rel="prefetch" href="/docs/next/assets/js/4.7b1ba515.js"><link rel="prefetch" href="/docs/next/assets/js/40.2608d554.js"><link rel="prefetch" href="/docs/next/assets/js/41.532fe939.js"><link rel="prefetch" href="/docs/next/assets/js/42.480061d6.js"><link rel="prefetch" href="/docs/next/assets/js/43.2062f710.js"><link rel="prefetch" href="/docs/next/assets/js/44.e58d0498.js"><link rel="prefetch" href="/docs/next/assets/js/45.5131ac54.js"><link rel="prefetch" href="/docs/next/assets/js/46.bb1886c3.js"><link rel="prefetch" href="/docs/next/assets/js/47.bcfee47e.js"><link rel="prefetch" href="/docs/next/assets/js/48.8d8d26ab.js"><link rel="prefetch" href="/docs/next/assets/js/49.417b73cb.js"><link rel="prefetch" href="/docs/next/assets/js/5.5f1e37ab.js"><link rel="prefetch" href="/docs/next/assets/js/50.77867f04.js"><link rel="prefetch" href="/docs/next/assets/js/51.132570ed.js"><link rel="prefetch" href="/docs/next/assets/js/52.39656457.js"><link rel="prefetch" href="/docs/next/assets/js/53.f401b7bf.js"><link rel="prefetch" href="/docs/next/assets/js/54.b99461aa.js"><link rel="prefetch" href="/docs/next/assets/js/55.884e9434.js"><link rel="prefetch" href="/docs/next/assets/js/56.d74cdeab.js"><link rel="prefetch" href="/docs/next/assets/js/57.86bebdef.js"><link rel="prefetch" href="/docs/next/assets/js/58.bb14488f.js"><link rel="prefetch" href="/docs/next/assets/js/59.48115ecf.js"><link rel="prefetch" href="/docs/next/assets/js/6.fded0504.js"><link rel="prefetch" href="/docs/next/assets/js/60.a45f22c2.js"><link rel="prefetch" href="/docs/next/assets/js/61.4ec02286.js"><link rel="prefetch" href="/docs/next/assets/js/62.fc0046b0.js"><link rel="prefetch" href="/docs/next/assets/js/63.f606a653.js"><link rel="prefetch" href="/docs/next/assets/js/64.7afdac3e.js"><link rel="prefetch" href="/docs/next/assets/js/65.63eb447e.js"><link rel="prefetch" href="/docs/next/assets/js/66.27668122.js"><link rel="prefetch" href="/docs/next/assets/js/67.585f2fc7.js"><link rel="prefetch" href="/docs/next/assets/js/68.99cd4fab.js"><link rel="prefetch" href="/docs/next/assets/js/69.31dc4728.js"><link rel="prefetch" href="/docs/next/assets/js/7.7f7e29fb.js"><link rel="prefetch" href="/docs/next/assets/js/70.62172d1b.js"><link rel="prefetch" href="/docs/next/assets/js/71.8e905e6d.js"><link rel="prefetch" href="/docs/next/assets/js/72.0e7ece27.js"><link rel="prefetch" href="/docs/next/assets/js/73.8e4354c0.js"><link rel="prefetch" href="/docs/next/assets/js/74.e622ba99.js"><link rel="prefetch" href="/docs/next/assets/js/75.cd884781.js"><link rel="prefetch" href="/docs/next/assets/js/76.d51b9168.js"><link rel="prefetch" href="/docs/next/assets/js/77.eda9ccc1.js"><link rel="prefetch" href="/docs/next/assets/js/78.ae4cafc3.js"><link rel="prefetch" href="/docs/next/assets/js/79.8904295a.js"><link rel="prefetch" href="/docs/next/assets/js/8.b36085f7.js"><link rel="prefetch" href="/docs/next/assets/js/81.08840d97.js"><link rel="prefetch" href="/docs/next/assets/js/82.f808225e.js"><link rel="prefetch" href="/docs/next/assets/js/83.d0175ebd.js"><link rel="prefetch" href="/docs/next/assets/js/84.4584216a.js"><link rel="prefetch" href="/docs/next/assets/js/85.42fee9fd.js"><link rel="prefetch" href="/docs/next/assets/js/86.aa2074f4.js"><link rel="prefetch" href="/docs/next/assets/js/87.11751fe1.js"><link rel="prefetch" href="/docs/next/assets/js/88.24f73489.js"><link rel="prefetch" href="/docs/next/assets/js/89.a9f679a2.js"><link rel="prefetch" href="/docs/next/assets/js/9.5bb8c761.js"><link rel="prefetch" href="/docs/next/assets/js/90.4f5526cd.js"><link rel="prefetch" href="/docs/next/assets/js/91.69b70c8d.js"><link rel="prefetch" href="/docs/next/assets/js/92.36a9a9f5.js"><link rel="prefetch" href="/docs/next/assets/js/93.2b39c149.js"><link rel="prefetch" href="/docs/next/assets/js/94.00b482e7.js"><link rel="prefetch" href="/docs/next/assets/js/95.ee8c57df.js"><link rel="prefetch" href="/docs/next/assets/js/96.fc54ce86.js"><link rel="prefetch" href="/docs/next/assets/js/97.2bab6d5b.js"><link rel="prefetch" href="/docs/next/assets/js/98.c38195cf.js"><link rel="prefetch" href="/docs/next/assets/js/99.009853cb.js">
<link rel="stylesheet" href="/docs/next/assets/css/0.styles.32b47955.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/docs/next/" class="home-link router-link-active"><img src="/docs/next/favicon.ico" alt="Chart.js" class="logo"> <span class="site-name can-hide">Chart.js</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/docs/next/" class="nav-link">
Home
</a></div><div class="nav-item"><a href="/docs/next/api/" class="nav-link router-link-active">
API
</a></div><div class="nav-item"><a href="/docs/next/samples/" class="nav-link">
Samples
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Community Menu" class="dropdown-title"><span class="title">Ecosystem</span> <span class="arrow down"></span></button> <button type="button" aria-label="Community Menu" class="mobile-dropdown-title"><span class="title">Ecosystem</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://github.com/chartjs/awesome" target="_blank" rel="noopener noreferrer" class="nav-link external">
Awesome
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://chartjs-slack.herokuapp.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Slack
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://stackoverflow.com/questions/tagged/chart.js" target="_blank" rel="noopener noreferrer" class="nav-link external">
Stack Overflow
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <a href="https://github.com/chartjs/Chart.js" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/docs/next/" class="nav-link">
Home
</a></div><div class="nav-item"><a href="/docs/next/api/" class="nav-link router-link-active">
API
</a></div><div class="nav-item"><a href="/docs/next/samples/" class="nav-link">
Samples
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Community Menu" class="dropdown-title"><span class="title">Ecosystem</span> <span class="arrow down"></span></button> <button type="button" aria-label="Community Menu" class="mobile-dropdown-title"><span class="title">Ecosystem</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://github.com/chartjs/awesome" target="_blank" rel="noopener noreferrer" class="nav-link external">
Awesome
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://chartjs-slack.herokuapp.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Slack
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://stackoverflow.com/questions/tagged/chart.js" target="_blank" rel="noopener noreferrer" class="nav-link external">
Stack Overflow
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <a href="https://github.com/chartjs/Chart.js" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>API</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/next/api/" aria-current="page" class="sidebar-link">Exports</a></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>Enumerations</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>Classes</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading open"><span>Interfaces</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/next/api/interfaces/ActiveDataPoint.html" class="sidebar-link">ActiveDataPoint</a></li><li><a href="/docs/next/api/interfaces/ActiveElement.html" class="sidebar-link">ActiveElement</a></li><li><a href="/docs/next/api/interfaces/AnimationEvent.html" class="sidebar-link">AnimationEvent</a></li><li><a href="/docs/next/api/interfaces/ArcBorderRadius.html" class="sidebar-link">ArcBorderRadius</a></li><li><a href="/docs/next/api/interfaces/ArcHoverOptions.html" class="sidebar-link">ArcHoverOptions</a></li><li><a href="/docs/next/api/interfaces/ArcOptions.html" class="sidebar-link">ArcOptions</a></li><li><a href="/docs/next/api/interfaces/ArcProps.html" class="sidebar-link">ArcProps</a></li><li><a href="/docs/next/api/interfaces/BarControllerChartOptions.html" class="sidebar-link">BarControllerChartOptions</a></li><li><a href="/docs/next/api/interfaces/BarControllerDatasetOptions.html" class="sidebar-link">BarControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/BarElement.html" class="sidebar-link">BarElement</a></li><li><a href="/docs/next/api/interfaces/BarHoverOptions.html" class="sidebar-link">BarHoverOptions</a></li><li><a href="/docs/next/api/interfaces/BarOptions.html" class="sidebar-link">BarOptions</a></li><li><a href="/docs/next/api/interfaces/BarProps.html" class="sidebar-link">BarProps</a></li><li><a href="/docs/next/api/interfaces/BorderOptions.html" class="sidebar-link">BorderOptions</a></li><li><a href="/docs/next/api/interfaces/BorderRadius.html" class="sidebar-link">BorderRadius</a></li><li><a href="/docs/next/api/interfaces/BubbleControllerDatasetOptions.html" class="sidebar-link">BubbleControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/BubbleDataPoint.html" class="sidebar-link">BubbleDataPoint</a></li><li><a href="/docs/next/api/interfaces/CartesianParsedData.html" class="sidebar-link">CartesianParsedData</a></li><li><a href="/docs/next/api/interfaces/CartesianScaleOptions.html" class="sidebar-link">CartesianScaleOptions</a></li><li><a href="/docs/next/api/interfaces/CartesianScaleTypeRegistry.html" class="sidebar-link">CartesianScaleTypeRegistry</a></li><li><a href="/docs/next/api/interfaces/ChartArea.html" class="sidebar-link">ChartArea</a></li><li><a href="/docs/next/api/interfaces/ChartComponent.html" class="sidebar-link">ChartComponent</a></li><li><a href="/docs/next/api/interfaces/ChartConfiguration.html" class="sidebar-link">ChartConfiguration</a></li><li><a href="/docs/next/api/interfaces/ChartConfigurationCustomTypesPerDataset.html" class="sidebar-link">ChartConfigurationCustomTypesPerDataset</a></li><li><a href="/docs/next/api/interfaces/ChartData.html" class="sidebar-link">ChartData</a></li><li><a href="/docs/next/api/interfaces/ChartDataCustomTypesPerDataset.html" class="sidebar-link">ChartDataCustomTypesPerDataset</a></li><li><a href="/docs/next/api/interfaces/ChartDatasetProperties.html" class="sidebar-link">ChartDatasetProperties</a></li><li><a href="/docs/next/api/interfaces/ChartDatasetPropertiesCustomTypesPerDataset.html" class="sidebar-link">ChartDatasetPropertiesCustomTypesPerDataset</a></li><li><a href="/docs/next/api/interfaces/ChartEvent.html" class="sidebar-link">ChartEvent</a></li><li><a href="/docs/next/api/interfaces/ChartTypeRegistry.html" class="sidebar-link">ChartTypeRegistry</a></li><li><a href="/docs/next/api/interfaces/CommonElementOptions.html" class="sidebar-link">CommonElementOptions</a></li><li><a href="/docs/next/api/interfaces/CommonHoverOptions.html" class="sidebar-link">CommonHoverOptions</a></li><li><a href="/docs/next/api/interfaces/ComplexFillTarget.html" class="sidebar-link">ComplexFillTarget</a></li><li><a href="/docs/next/api/interfaces/ControllerDatasetOptions.html" class="sidebar-link">ControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/CoreChartOptions.html" class="sidebar-link">CoreChartOptions</a></li><li><a href="/docs/next/api/interfaces/CoreInteractionOptions.html" class="sidebar-link">CoreInteractionOptions</a></li><li><a href="/docs/next/api/interfaces/CoreScaleOptions.html" class="sidebar-link">CoreScaleOptions</a></li><li><a href="/docs/next/api/interfaces/DatasetControllerChartComponent.html" class="sidebar-link">DatasetControllerChartComponent</a></li><li><a href="/docs/next/api/interfaces/Defaults.html" class="sidebar-link">Defaults</a></li><li><a href="/docs/next/api/interfaces/DoughnutAnimationOptions.html" class="sidebar-link">DoughnutAnimationOptions</a></li><li><a href="/docs/next/api/interfaces/DoughnutController.html" class="sidebar-link">DoughnutController</a></li><li><a href="/docs/next/api/interfaces/DoughnutControllerChartOptions.html" class="sidebar-link">DoughnutControllerChartOptions</a></li><li><a href="/docs/next/api/interfaces/DoughnutControllerDatasetOptions.html" class="sidebar-link">DoughnutControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/DoughnutMetaExtensions.html" class="sidebar-link">DoughnutMetaExtensions</a></li><li><a href="/docs/next/api/interfaces/ElementOptionsByType.html" class="sidebar-link">ElementOptionsByType</a></li><li><a href="/docs/next/api/interfaces/ExtendedPlugin.html" class="sidebar-link">ExtendedPlugin</a></li><li><a href="/docs/next/api/interfaces/FillerControllerDatasetOptions.html" class="sidebar-link">FillerControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/FillerOptions.html" class="sidebar-link">FillerOptions</a></li><li><a href="/docs/next/api/interfaces/FontSpec.html" class="sidebar-link">FontSpec</a></li><li><a href="/docs/next/api/interfaces/GridLineOptions.html" class="sidebar-link">GridLineOptions</a></li><li><a href="/docs/next/api/interfaces/InteractionItem.html" class="sidebar-link">InteractionItem</a></li><li><a href="/docs/next/api/interfaces/InteractionModeMap.html" class="sidebar-link">InteractionModeMap</a></li><li><a href="/docs/next/api/interfaces/InteractionOptions.html" class="sidebar-link">InteractionOptions</a></li><li><a href="/docs/next/api/interfaces/LayoutItem.html" class="sidebar-link">LayoutItem</a></li><li><a href="/docs/next/api/interfaces/LegendElement.html" aria-current="page" class="active sidebar-link">LegendElement</a></li><li><a href="/docs/next/api/interfaces/LegendItem.html" class="sidebar-link">LegendItem</a></li><li><a href="/docs/next/api/interfaces/LegendOptions.html" class="sidebar-link">LegendOptions</a></li><li><a href="/docs/next/api/interfaces/LineControllerChartOptions.html" class="sidebar-link">LineControllerChartOptions</a></li><li><a href="/docs/next/api/interfaces/LineControllerDatasetOptions.html" class="sidebar-link">LineControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/LineElement.html" class="sidebar-link">LineElement</a></li><li><a href="/docs/next/api/interfaces/LineHoverOptions.html" class="sidebar-link">LineHoverOptions</a></li><li><a href="/docs/next/api/interfaces/LineOptions.html" class="sidebar-link">LineOptions</a></li><li><a href="/docs/next/api/interfaces/LineProps.html" class="sidebar-link">LineProps</a></li><li><a href="/docs/next/api/interfaces/ParsingOptions.html" class="sidebar-link">ParsingOptions</a></li><li><a href="/docs/next/api/interfaces/Plugin.html" class="sidebar-link">Plugin</a></li><li><a href="/docs/next/api/interfaces/PluginChartOptions.html" class="sidebar-link">PluginChartOptions</a></li><li><a href="/docs/next/api/interfaces/PluginOptionsByType.html" class="sidebar-link">PluginOptionsByType</a></li><li><a href="/docs/next/api/interfaces/Point.html" class="sidebar-link">Point</a></li><li><a href="/docs/next/api/interfaces/PointHoverOptions.html" class="sidebar-link">PointHoverOptions</a></li><li><a href="/docs/next/api/interfaces/PointOptions.html" class="sidebar-link">PointOptions</a></li><li><a href="/docs/next/api/interfaces/PointPrefixedHoverOptions.html" class="sidebar-link">PointPrefixedHoverOptions</a></li><li><a href="/docs/next/api/interfaces/PointPrefixedOptions.html" class="sidebar-link">PointPrefixedOptions</a></li><li><a href="/docs/next/api/interfaces/PolarAreaController.html" class="sidebar-link">PolarAreaController</a></li><li><a href="/docs/next/api/interfaces/PolarAreaControllerChartOptions.html" class="sidebar-link">PolarAreaControllerChartOptions</a></li><li><a href="/docs/next/api/interfaces/PolarAreaControllerDatasetOptions.html" class="sidebar-link">PolarAreaControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/RadarControllerDatasetOptions.html" class="sidebar-link">RadarControllerDatasetOptions</a></li><li><a href="/docs/next/api/interfaces/RadialLinearScale.html" class="sidebar-link">RadialLinearScale</a></li><li><a href="/docs/next/api/interfaces/RadialScaleTypeRegistry.html" class="sidebar-link">RadialScaleTypeRegistry</a></li><li><a href="/docs/next/api/interfaces/Registry.html" class="sidebar-link">Registry</a></li><li><a href="/docs/next/api/interfaces/ScaleTypeRegistry.html" class="sidebar-link">ScaleTypeRegistry</a></li><li><a href="/docs/next/api/interfaces/ScatterDataPoint.html" class="sidebar-link">ScatterDataPoint</a></li><li><a href="/docs/next/api/interfaces/ScriptableCartesianScaleContext.html" class="sidebar-link">ScriptableCartesianScaleContext</a></li><li><a href="/docs/next/api/interfaces/ScriptableChartContext.html" class="sidebar-link">ScriptableChartContext</a></li><li><a href="/docs/next/api/interfaces/ScriptableContext.html" class="sidebar-link">ScriptableContext</a></li><li><a href="/docs/next/api/interfaces/ScriptableLineSegmentContext.html" class="sidebar-link">ScriptableLineSegmentContext</a></li><li><a href="/docs/next/api/interfaces/ScriptableScaleContext.html" class="sidebar-link">ScriptableScaleContext</a></li><li><a href="/docs/next/api/interfaces/ScriptableScalePointLabelContext.html" class="sidebar-link">ScriptableScalePointLabelContext</a></li><li><a href="/docs/next/api/interfaces/ScriptableTooltipContext.html" class="sidebar-link">ScriptableTooltipContext</a></li><li><a href="/docs/next/api/interfaces/Segment.html" class="sidebar-link">Segment</a></li><li><a href="/docs/next/api/interfaces/Tick.html" class="sidebar-link">Tick</a></li><li><a href="/docs/next/api/interfaces/TickOptions.html" class="sidebar-link">TickOptions</a></li><li><a href="/docs/next/api/interfaces/TimeScale.html" class="sidebar-link">TimeScale</a></li><li><a href="/docs/next/api/interfaces/TitleOptions.html" class="sidebar-link">TitleOptions</a></li><li><a href="/docs/next/api/interfaces/Tooltip.html" class="sidebar-link">Tooltip</a></li><li><a href="/docs/next/api/interfaces/TooltipCallbacks.html" class="sidebar-link">TooltipCallbacks</a></li><li><a href="/docs/next/api/interfaces/TooltipItem.html" class="sidebar-link">TooltipItem</a></li><li><a href="/docs/next/api/interfaces/TooltipLabelStyle.html" class="sidebar-link">TooltipLabelStyle</a></li><li><a href="/docs/next/api/interfaces/TooltipModel.html" class="sidebar-link">TooltipModel</a></li><li><a href="/docs/next/api/interfaces/TooltipOptions.html" class="sidebar-link">TooltipOptions</a></li><li><a href="/docs/next/api/interfaces/TooltipPosition.html" class="sidebar-link">TooltipPosition</a></li><li><a href="/docs/next/api/interfaces/TooltipPositionerMap.html" class="sidebar-link">TooltipPositionerMap</a></li><li><a href="/docs/next/api/interfaces/TypedRegistry.html" class="sidebar-link">TypedRegistry</a></li><li><a href="/docs/next/api/interfaces/VisualElement.html" class="sidebar-link">VisualElement</a></li></ul></section></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="interface-legendelement-ttype"><a href="#interface-legendelement-ttype" class="header-anchor">#</a> Interface: LegendElement<TType></h1> <h2 id="type-parameters"><a href="#type-parameters" class="header-anchor">#</a> Type parameters</h2> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>TType</code></td> <td style="text-align:left;">extends <a href="/docs/next/api/#charttype"><code>ChartType</code></a></td></tr></tbody></table> <h2 id="hierarchy"><a href="#hierarchy" class="header-anchor">#</a> Hierarchy</h2> <ul><li><p><code>default</code><<code>AnyObject</code>, <a href="/docs/next/api/interfaces/LegendOptions.html"><code>LegendOptions</code></a><<code>TType</code>>></p></li> <li><p><a href="/docs/next/api/interfaces/LayoutItem.html"><code>LayoutItem</code></a></p> <p>↳ <strong><code>LegendElement</code></strong></p></li></ul> <h2 id="properties"><a href="#properties" class="header-anchor">#</a> Properties</h2> <h3 id="animations"><a href="#animations" class="header-anchor">#</a> $animations</h3> <p>• <strong>$animations</strong>: <code>Record</code><<code>string</code>, <a href="/docs/next/api/classes/Animation.html"><code>Animation</code></a>></p> <h4 id="inherited-from"><a href="#inherited-from" class="header-anchor">#</a> Inherited from</h4> <p>Element.$animations</p> <h4 id="defined-in"><a href="#defined-in" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L15" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:15<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="active"><a href="#active" class="header-anchor">#</a> active</h3> <p>• <strong>active</strong>: <code>boolean</code> = <code>false</code></p> <h4 id="inherited-from-2"><a href="#inherited-from-2" class="header-anchor">#</a> Inherited from</h4> <p>Element.active</p> <h4 id="defined-in-2"><a href="#defined-in-2" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L13" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:13<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="bottom"><a href="#bottom" class="header-anchor">#</a> bottom</h3> <p>• <strong>bottom</strong>: <code>number</code></p> <p>Bottom edge of the item. Set by layout system and cannot be used in update</p> <h4 id="inherited-from-3"><a href="#inherited-from-3" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#bottom">bottom</a></p> <h4 id="defined-in-3"><a href="#defined-in-3" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L41" target="_blank" rel="noopener noreferrer">types/layout.d.ts:41<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="chart"><a href="#chart" class="header-anchor">#</a> chart</h3> <p>• <strong>chart</strong>: <a href="/docs/next/api/classes/Chart.html"><code>Chart</code></a><<code>TType</code>, <code>DistributiveArray</code><<a href="/docs/next/api/interfaces/ChartTypeRegistry.html"><code>ChartTypeRegistry</code></a>[<code>TType</code>][<code>"defaultDataPoint"</code>]>, <code>unknown</code>></p> <h4 id="defined-in-4"><a href="#defined-in-4" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/index.d.ts#L2190" target="_blank" rel="noopener noreferrer">types/index.d.ts:2190<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="ctx"><a href="#ctx" class="header-anchor">#</a> ctx</h3> <p>• <strong>ctx</strong>: <code>CanvasRenderingContext2D</code></p> <h4 id="defined-in-5"><a href="#defined-in-5" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/index.d.ts#L2191" target="_blank" rel="noopener noreferrer">types/index.d.ts:2191<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="fullsize"><a href="#fullsize" class="header-anchor">#</a> fullSize</h3> <p>• <strong>fullSize</strong>: <code>boolean</code></p> <p>if true, and the item is horizontal, then push vertical boxes down</p> <h4 id="inherited-from-4"><a href="#inherited-from-4" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#fullsize">fullSize</a></p> <h4 id="defined-in-6"><a href="#defined-in-6" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L17" target="_blank" rel="noopener noreferrer">types/layout.d.ts:17<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="height"><a href="#height" class="header-anchor">#</a> height</h3> <p>• <strong>height</strong>: <code>number</code></p> <p>Height of item. Must be valid after update()</p> <h4 id="inherited-from-5"><a href="#inherited-from-5" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#height">height</a></p> <h4 id="defined-in-7"><a href="#defined-in-7" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L25" target="_blank" rel="noopener noreferrer">types/layout.d.ts:25<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="left"><a href="#left" class="header-anchor">#</a> left</h3> <p>• <strong>left</strong>: <code>number</code></p> <p>Left edge of the item. Set by layout system and cannot be used in update</p> <h4 id="inherited-from-6"><a href="#inherited-from-6" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#left">left</a></p> <h4 id="defined-in-8"><a href="#defined-in-8" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L29" target="_blank" rel="noopener noreferrer">types/layout.d.ts:29<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="legenditems"><a href="#legenditems" class="header-anchor">#</a> legendItems</h3> <p>• <code>Optional</code> <strong>legendItems</strong>: <a href="/docs/next/api/interfaces/LegendItem.html"><code>LegendItem</code></a>[]</p> <h4 id="defined-in-9"><a href="#defined-in-9" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/index.d.ts#L2192" target="_blank" rel="noopener noreferrer">types/index.d.ts:2192<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="options"><a href="#options" class="header-anchor">#</a> options</h3> <p>• <strong>options</strong>: <a href="/docs/next/api/interfaces/LegendOptions.html"><code>LegendOptions</code></a><<code>TType</code>></p> <h4 id="overrides"><a href="#overrides" class="header-anchor">#</a> Overrides</h4> <p>Element.options</p> <h4 id="defined-in-10"><a href="#defined-in-10" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/index.d.ts#L2193" target="_blank" rel="noopener noreferrer">types/index.d.ts:2193<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="position"><a href="#position" class="header-anchor">#</a> position</h3> <p>• <strong>position</strong>: <a href="/docs/next/api/#layoutposition"><code>LayoutPosition</code></a></p> <p>The position of the item in the chart layout. Possible values are</p> <h4 id="inherited-from-7"><a href="#inherited-from-7" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#position">position</a></p> <h4 id="defined-in-11"><a href="#defined-in-11" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L9" target="_blank" rel="noopener noreferrer">types/layout.d.ts:9<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="right"><a href="#right" class="header-anchor">#</a> right</h3> <p>• <strong>right</strong>: <code>number</code></p> <p>Right edge of the item. Set by layout system and cannot be used in update</p> <h4 id="inherited-from-8"><a href="#inherited-from-8" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#right">right</a></p> <h4 id="defined-in-12"><a href="#defined-in-12" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L37" target="_blank" rel="noopener noreferrer">types/layout.d.ts:37<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="top"><a href="#top" class="header-anchor">#</a> top</h3> <p>• <strong>top</strong>: <code>number</code></p> <p>Top edge of the item. Set by layout system and cannot be used in update</p> <h4 id="inherited-from-9"><a href="#inherited-from-9" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#top">top</a></p> <h4 id="defined-in-13"><a href="#defined-in-13" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L33" target="_blank" rel="noopener noreferrer">types/layout.d.ts:33<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="weight"><a href="#weight" class="header-anchor">#</a> weight</h3> <p>• <strong>weight</strong>: <code>number</code></p> <p>The weight used to sort the item. Higher weights are further away from the chart area</p> <h4 id="inherited-from-10"><a href="#inherited-from-10" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#weight">weight</a></p> <h4 id="defined-in-14"><a href="#defined-in-14" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L13" target="_blank" rel="noopener noreferrer">types/layout.d.ts:13<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="width"><a href="#width" class="header-anchor">#</a> width</h3> <p>• <strong>width</strong>: <code>number</code></p> <p>Width of item. Must be valid after update()</p> <h4 id="inherited-from-11"><a href="#inherited-from-11" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#width">width</a></p> <h4 id="defined-in-15"><a href="#defined-in-15" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L21" target="_blank" rel="noopener noreferrer">types/layout.d.ts:21<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="x"><a href="#x" class="header-anchor">#</a> x</h3> <p>• <strong>x</strong>: <code>number</code></p> <h4 id="inherited-from-12"><a href="#inherited-from-12" class="header-anchor">#</a> Inherited from</h4> <p>Element.x</p> <h4 id="defined-in-16"><a href="#defined-in-16" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L11" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:11<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="y"><a href="#y" class="header-anchor">#</a> y</h3> <p>• <strong>y</strong>: <code>number</code></p> <h4 id="inherited-from-13"><a href="#inherited-from-13" class="header-anchor">#</a> Inherited from</h4> <p>Element.y</p> <h4 id="defined-in-17"><a href="#defined-in-17" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L12" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:12<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <h2 id="methods"><a href="#methods" class="header-anchor">#</a> Methods</h2> <h3 id="beforelayout"><a href="#beforelayout" class="header-anchor">#</a> beforeLayout</h3> <p>▸ <code>Optional</code> <strong>beforeLayout</strong>(): <code>void</code></p> <p>Called before the layout process starts</p> <h4 id="returns"><a href="#returns" class="header-anchor">#</a> Returns</h4> <p><code>void</code></p> <h4 id="inherited-from-14"><a href="#inherited-from-14" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#beforelayout">beforeLayout</a></p> <h4 id="defined-in-18"><a href="#defined-in-18" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L46" target="_blank" rel="noopener noreferrer">types/layout.d.ts:46<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="draw"><a href="#draw" class="header-anchor">#</a> draw</h3> <p>▸ <strong>draw</strong>(<code>chartArea</code>): <code>void</code></p> <p>Draws the element</p> <h4 id="parameters"><a href="#parameters" class="header-anchor">#</a> Parameters</h4> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>chartArea</code></td> <td style="text-align:left;"><a href="/docs/next/api/interfaces/ChartArea.html"><code>ChartArea</code></a></td></tr></tbody></table> <h4 id="returns-2"><a href="#returns-2" class="header-anchor">#</a> Returns</h4> <p><code>void</code></p> <h4 id="inherited-from-15"><a href="#inherited-from-15" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#draw">draw</a></p> <h4 id="defined-in-19"><a href="#defined-in-19" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L50" target="_blank" rel="noopener noreferrer">types/layout.d.ts:50<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="getpadding"><a href="#getpadding" class="header-anchor">#</a> getPadding</h3> <p>▸ <code>Optional</code> <strong>getPadding</strong>(): <a href="/docs/next/api/interfaces/ChartArea.html"><code>ChartArea</code></a></p> <p>Returns an object with padding on the edges</p> <h4 id="returns-3"><a href="#returns-3" class="header-anchor">#</a> Returns</h4> <p><a href="/docs/next/api/interfaces/ChartArea.html"><code>ChartArea</code></a></p> <h4 id="inherited-from-16"><a href="#inherited-from-16" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#getpadding">getPadding</a></p> <h4 id="defined-in-20"><a href="#defined-in-20" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L54" target="_blank" rel="noopener noreferrer">types/layout.d.ts:54<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="getprops"><a href="#getprops" class="header-anchor">#</a> getProps</h3> <p>▸ <strong>getProps</strong><<code>P</code>>(<code>props</code>, <code>final?</code>): <code>Pick</code><<code>AnyObject</code>, <code>P</code>[<code>number</code>]></p> <p>Gets the current or final value of each prop. Can return extra properties (whole object).</p> <h4 id="type-parameters-2"><a href="#type-parameters-2" class="header-anchor">#</a> Type parameters</h4> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>P</code></td> <td style="text-align:left;">extends <code>string</code>[]</td></tr></tbody></table> <h4 id="parameters-2"><a href="#parameters-2" class="header-anchor">#</a> Parameters</h4> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th> <th style="text-align:left;">Description</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>props</code></td> <td style="text-align:left;"><code>P</code></td> <td style="text-align:left;">properties to get</td></tr> <tr><td style="text-align:left;"><code>final?</code></td> <td style="text-align:left;"><code>boolean</code></td> <td style="text-align:left;">get the final value (animation target)</td></tr></tbody></table> <h4 id="returns-4"><a href="#returns-4" class="header-anchor">#</a> Returns</h4> <p><code>Pick</code><<code>AnyObject</code>, <code>P</code>[<code>number</code>]></p> <h4 id="inherited-from-17"><a href="#inherited-from-17" class="header-anchor">#</a> Inherited from</h4> <p>Element.getProps</p> <h4 id="defined-in-21"><a href="#defined-in-21" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L31" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:31<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p>▸ <strong>getProps</strong><<code>P</code>>(<code>props</code>, <code>final?</code>): <code>Partial</code><<code>Record</code><<code>P</code>, <code>unknown</code>>></p> <h4 id="type-parameters-3"><a href="#type-parameters-3" class="header-anchor">#</a> Type parameters</h4> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>P</code></td> <td style="text-align:left;">extends <code>string</code></td></tr></tbody></table> <h4 id="parameters-3"><a href="#parameters-3" class="header-anchor">#</a> Parameters</h4> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>props</code></td> <td style="text-align:left;"><code>P</code>[]</td></tr> <tr><td style="text-align:left;"><code>final?</code></td> <td style="text-align:left;"><code>boolean</code></td></tr></tbody></table> <h4 id="returns-5"><a href="#returns-5" class="header-anchor">#</a> Returns</h4> <p><code>Partial</code><<code>Record</code><<code>P</code>, <code>unknown</code>>></p> <h4 id="inherited-from-18"><a href="#inherited-from-18" class="header-anchor">#</a> Inherited from</h4> <p>Element.getProps</p> <h4 id="defined-in-22"><a href="#defined-in-22" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L32" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:32<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="hasvalue"><a href="#hasvalue" class="header-anchor">#</a> hasValue</h3> <p>▸ <strong>hasValue</strong>(): <code>boolean</code></p> <h4 id="returns-6"><a href="#returns-6" class="header-anchor">#</a> Returns</h4> <p><code>boolean</code></p> <h4 id="inherited-from-19"><a href="#inherited-from-19" class="header-anchor">#</a> Inherited from</h4> <p>Element.hasValue</p> <h4 id="defined-in-23"><a href="#defined-in-23" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L22" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:22<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="ishorizontal"><a href="#ishorizontal" class="header-anchor">#</a> isHorizontal</h3> <p>▸ <strong>isHorizontal</strong>(): <code>boolean</code></p> <p>returns true if the layout item is horizontal (ie. top or bottom)</p> <h4 id="returns-7"><a href="#returns-7" class="header-anchor">#</a> Returns</h4> <p><code>boolean</code></p> <h4 id="inherited-from-20"><a href="#inherited-from-20" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#ishorizontal">isHorizontal</a></p> <h4 id="defined-in-24"><a href="#defined-in-24" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L58" target="_blank" rel="noopener noreferrer">types/layout.d.ts:58<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="tooltipposition"><a href="#tooltipposition" class="header-anchor">#</a> tooltipPosition</h3> <p>▸ <strong>tooltipPosition</strong>(<code>useFinalPosition</code>): <a href="/docs/next/api/interfaces/Point.html"><code>Point</code></a></p> <h4 id="parameters-4"><a href="#parameters-4" class="header-anchor">#</a> Parameters</h4> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>useFinalPosition</code></td> <td style="text-align:left;"><code>boolean</code></td></tr></tbody></table> <h4 id="returns-8"><a href="#returns-8" class="header-anchor">#</a> Returns</h4> <p><a href="/docs/next/api/interfaces/Point.html"><code>Point</code></a></p> <h4 id="inherited-from-21"><a href="#inherited-from-21" class="header-anchor">#</a> Inherited from</h4> <p>Element.tooltipPosition</p> <h4 id="defined-in-25"><a href="#defined-in-25" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/src/core/core.element.ts#L17" target="_blank" rel="noopener noreferrer">src/core/core.element.ts:17<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <hr> <h3 id="update"><a href="#update" class="header-anchor">#</a> update</h3> <p>▸ <strong>update</strong>(<code>width</code>, <code>height</code>, <code>margins?</code>): <code>void</code></p> <p>Takes two parameters: width and height.</p> <h4 id="parameters-5"><a href="#parameters-5" class="header-anchor">#</a> Parameters</h4> <table><thead><tr><th style="text-align:left;">Name</th> <th style="text-align:left;">Type</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>width</code></td> <td style="text-align:left;"><code>number</code></td></tr> <tr><td style="text-align:left;"><code>height</code></td> <td style="text-align:left;"><code>number</code></td></tr> <tr><td style="text-align:left;"><code>margins?</code></td> <td style="text-align:left;"><a href="/docs/next/api/interfaces/ChartArea.html"><code>ChartArea</code></a></td></tr></tbody></table> <h4 id="returns-9"><a href="#returns-9" class="header-anchor">#</a> Returns</h4> <p><code>void</code></p> <h4 id="inherited-from-22"><a href="#inherited-from-22" class="header-anchor">#</a> Inherited from</h4> <p><a href="/docs/next/api/interfaces/LayoutItem.html">LayoutItem</a>.<a href="/docs/next/api/interfaces/LayoutItem.html#update">update</a></p> <h4 id="defined-in-26"><a href="#defined-in-26" class="header-anchor">#</a> Defined in</h4> <p><a href="https://github.com/chartjs/Chart.js/blob/11f3cf6/types/layout.d.ts#L64" target="_blank" rel="noopener noreferrer">types/layout.d.ts:64<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
←
<a href="/docs/next/api/interfaces/LayoutItem.html" class="prev">
LayoutItem
</a></span> <span class="next"><a href="/docs/next/api/interfaces/LegendItem.html">
LegendItem
</a>
→
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/docs/next/assets/js/app.79ca5bdb.js" defer></script><script src="/docs/next/assets/js/2.5288603d.js" defer></script><script src="/docs/next/assets/js/80.a68f1097.js" defer></script>
</body>
</html>