Repository navigation
Expand file tree
/
Copy pathbasicplatform.html
More file actions
55 lines (55 loc) · 43 KB
/
Copy pathbasicplatform.html
File metadata and controls
55 lines (55 loc) · 43 KB
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Class: BasicPlatform | Chart.js</title>
<meta name="generator" content="VuePress 1.8.2">
<link rel="icon" href="/docs/3.3.2/favicon.ico">
<meta name="description" content="Open source HTML5 Charts for your website">
<link rel="preload" href="/docs/3.3.2/assets/css/0.styles.a7454cff.css" as="style"><link rel="preload" href="/docs/3.3.2/assets/js/app.f414e150.js" as="script"><link rel="preload" href="/docs/3.3.2/assets/js/2.db7fa539.js" as="script"><link rel="preload" href="/docs/3.3.2/assets/js/14.61162085.js" as="script"><link rel="prefetch" href="/docs/3.3.2/assets/js/10.c421ad61.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/100.f30518b1.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/101.6b0d957a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/102.18c33bb0.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/103.1622c24d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/104.2e55fc00.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/105.02cd522b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/106.091455d8.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/107.e3a9d6ac.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/108.f6b7852c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/109.163575cf.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/11.0fc41e81.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/110.9d6d6aa4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/111.0f7d9eb9.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/112.04413919.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/113.7b61d299.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/114.2774c20c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/115.0691642c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/116.bec2b2d4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/117.6b968704.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/118.a733100f.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/119.ca862975.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/12.e7406b7b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/120.a4312622.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/121.5b6ae765.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/122.32520f7b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/123.e1daaf4f.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/124.1e7fbcd4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/125.51e6b175.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/126.f3254f26.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/127.d7d3d8c6.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/128.7aa2999a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/129.890228b0.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/13.c91f2c17.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/130.68e7ae50.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/131.254ec437.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/132.dec8c011.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/133.9d1136c8.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/134.89cd5542.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/135.7e253a51.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/136.7ce8de93.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/137.ccbb4541.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/138.991a20df.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/139.7ca6205d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/140.32854e3c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/141.3e3024ea.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/142.65cd32d4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/143.937e2aea.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/144.2d69e99f.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/145.08ea09e1.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/146.4a7990ab.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/147.2bfb2914.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/148.354c8e63.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/149.933065ef.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/15.e72f2508.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/150.68747422.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/151.d303c99d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/152.abc359d6.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/153.3ad9af49.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/154.7e5cf6fa.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/155.620de4d8.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/156.ca5aca19.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/157.4f35e4ad.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/158.c03f1aaa.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/159.6b932be3.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/16.0fbc7c10.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/160.531a2578.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/161.895673a2.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/162.01064e90.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/163.185c6ae7.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/164.48ba4bc4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/165.b1783954.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/166.e484b764.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/167.24ce2f40.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/168.7a23012a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/169.6c21af67.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/17.a6d33954.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/170.23dd9572.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/171.ba6ef06c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/172.598088f9.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/173.8f8096c1.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/174.a2df6f6a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/175.2ac6add2.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/176.e7c18130.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/177.3ccdab88.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/178.0bb694c4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/179.f1443feb.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/18.94abeff1.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/180.1b57a689.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/181.abbaf599.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/182.5e78fd76.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/183.7a5ff64c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/184.3331d32d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/185.cee987e2.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/186.1e9e8042.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/187.3f7c05ed.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/188.55a833b1.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/189.89b58f2c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/19.7acf99ee.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/190.f41cdf5b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/191.8a6c6da5.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/192.a7f3d806.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/193.00956301.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/194.35a01f5d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/195.5269e07f.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/196.fca21ef2.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/197.f9d4e700.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/198.7f6bd385.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/199.828f9af4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/20.a22cbffe.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/200.576eec4f.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/201.05609a43.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/202.8188485a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/203.9f299008.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/204.a334a411.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/205.5f561e5b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/206.992fec60.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/207.4e4c0344.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/208.c8171bf5.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/209.ab9664c9.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/21.9c9f6077.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/210.c632f539.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/211.8cef6c02.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/212.7c8bbd84.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/213.8d1d06c8.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/214.e5a0bdec.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/215.06c8059d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/216.de0e5357.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/217.aa713045.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/218.d4b12dc4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/219.7a5aa7bc.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/22.f9366695.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/220.f1824c35.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/221.82071602.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/222.8f58b13d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/223.a5785f35.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/224.6b398562.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/225.8c86cfe9.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/226.514b5a63.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/227.0d59a2c4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/228.96645530.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/229.ef4f8ffd.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/23.c0305b91.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/230.7bc98bc0.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/231.850a31ec.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/232.d5e497a4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/233.3b69d3c8.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/234.13a8ea7c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/235.c070423f.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/236.6e9c166e.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/237.0f74f939.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/238.05e23d7a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/239.cf0049a4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/24.037bfb82.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/240.9e810cfe.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/241.90fcaecb.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/242.1612506f.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/243.b8e558d7.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/244.f69692c7.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/25.a1ac3442.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/26.64e14064.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/27.7372f27c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/28.f68eeef1.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/29.cce77afb.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/3.8004f75d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/30.970cd0fc.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/31.c6421e17.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/32.d0106160.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/33.fe8baa50.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/34.b9523b85.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/35.2f1f6962.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/36.dbcee53a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/37.f9d2c84e.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/38.3ddebd76.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/39.d939aa1e.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/4.48298e4b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/40.384e0604.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/41.3b9e7c5e.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/42.1ad5aea4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/43.955175ef.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/44.e2da7661.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/45.5151e15a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/46.4fcfa944.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/47.58664482.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/48.52313301.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/49.a16a6126.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/5.79389072.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/50.d0b968b9.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/51.0f8cc7e5.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/52.cb9043eb.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/53.09b5ad3e.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/54.7121de4a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/55.519caf29.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/56.14cc84a9.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/57.df6c4d43.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/58.e4bc0dc2.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/59.da55260d.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/6.c95ff09c.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/60.e7f73eda.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/61.40b5eff6.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/62.d31e8eda.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/63.c3312156.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/64.1c44aab8.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/65.5fa71738.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/66.f7a5a30b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/67.3d16fbaf.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/68.50469321.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/69.83d250bb.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/7.1b15fd0a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/70.c41067c8.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/71.143d099b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/72.b00ded6b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/73.b58ff500.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/74.66220270.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/75.04bc7ae4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/76.1e2d31cc.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/77.305c2e41.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/78.83eba5eb.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/79.4ddf1f06.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/8.13067ab4.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/80.f7f6ceba.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/81.61b4aefd.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/82.7844396a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/83.e78058a9.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/84.a48648b1.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/85.e373e514.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/86.db7b4f18.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/87.ea58f507.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/88.317a22c3.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/89.9d97655b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/9.10481b8b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/90.65fcf1ad.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/91.5b9cb7e2.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/92.1286eadd.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/93.1f251eba.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/94.f5ab2dc2.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/95.d0b0ab4a.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/96.6dc2580b.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/97.b154d797.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/98.ae51feff.js"><link rel="prefetch" href="/docs/3.3.2/assets/js/99.3fd46893.js">
<link rel="stylesheet" href="/docs/3.3.2/assets/css/0.styles.a7454cff.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/3.3.2/" class="home-link router-link-active"><img src="/docs/3.3.2/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/3.3.2/" class="nav-link">
Home
</a></div><div class="nav-item"><a href="/docs/3.3.2/api/" class="nav-link router-link-active">
API
</a></div><div class="nav-item"><a href="/docs/3.3.2/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/3.3.2/" class="nav-link">
Home
</a></div><div class="nav-item"><a href="/docs/3.3.2/api/" class="nav-link router-link-active">
API
</a></div><div class="nav-item"><a href="/docs/3.3.2/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/3.3.2/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 open"><span>Classes</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/3.3.2/api/classes/animation.html" class="sidebar-link">Animation</a></li><li><a href="/docs/3.3.2/api/classes/animations.html" class="sidebar-link">Animations</a></li><li><a href="/docs/3.3.2/api/classes/animator.html" class="sidebar-link">Animator</a></li><li><a href="/docs/3.3.2/api/classes/baseplatform.html" class="sidebar-link">BasePlatform</a></li><li><a href="/docs/3.3.2/api/classes/basicplatform.html" aria-current="page" class="active sidebar-link">BasicPlatform</a></li><li><a href="/docs/3.3.2/api/classes/chart.html" class="sidebar-link">Chart</a></li><li><a href="/docs/3.3.2/api/classes/datasetcontroller.html" class="sidebar-link">DatasetController</a></li><li><a href="/docs/3.3.2/api/classes/domplatform.html" class="sidebar-link">DomPlatform</a></li><li><a href="/docs/3.3.2/api/classes/scale.html" class="sidebar-link">Scale</a></li></ul></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>Interfaces</span> <span class="arrow right"></span></p> <!----></section></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="class-basicplatform"><a href="#class-basicplatform" class="header-anchor">#</a> Class: BasicPlatform</h1> <h2 id="hierarchy"><a href="#hierarchy" class="header-anchor">#</a> Hierarchy</h2> <ul><li><p><a href="/docs/3.3.2/api/classes/baseplatform.html"><em>BasePlatform</em></a></p> <p>↳ <strong>BasicPlatform</strong></p></li></ul> <h2 id="constructors"><a href="#constructors" class="header-anchor">#</a> Constructors</h2> <h3 id="constructor"><a href="#constructor" class="header-anchor">#</a> constructor</h3> <p>+ <strong>new BasicPlatform</strong>(): <a href="/docs/3.3.2/api/classes/basicplatform.html" aria-current="page" class="router-link-exact-active router-link-active"><em>BasicPlatform</em></a></p> <p><strong>Returns:</strong> <a href="/docs/3.3.2/api/classes/basicplatform.html" aria-current="page" class="router-link-exact-active router-link-active"><em>BasicPlatform</em></a></p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <h2 id="methods"><a href="#methods" class="header-anchor">#</a> Methods</h2> <h3 id="acquirecontext"><a href="#acquirecontext" class="header-anchor">#</a> acquireContext</h3> <p>▸ <strong>acquireContext</strong>(<code>canvas</code>: HTMLCanvasElement, <code>options?</code>: CanvasRenderingContext2DSettings): CanvasRenderingContext2D</p> <p>Called at chart construction time, returns a context2d instance implementing
the <a href="https://www.w3.org/TR/2dcontext/" target="_blank" rel="noopener noreferrer">W3C Canvas 2D Context API standard<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> <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> <th style="text-align:left;">Description</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>canvas</code></td> <td style="text-align:left;">HTMLCanvasElement</td> <td style="text-align:left;">The canvas from which to acquire context (platform specific)</td></tr> <tr><td style="text-align:left;"><code>options?</code></td> <td style="text-align:left;">CanvasRenderingContext2DSettings</td> <td style="text-align:left;">The chart options</td></tr></tbody></table> <p><strong>Returns:</strong> CanvasRenderingContext2D</p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <p>Defined in: <a href="https://github.com/chartjs/Chart.js/blob/b9389f8/types/index.esm.d.ts#L1908" target="_blank" rel="noopener noreferrer">index.esm.d.ts:1908<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="addeventlistener"><a href="#addeventlistener" class="header-anchor">#</a> addEventListener</h3> <p>▸ <strong>addEventListener</strong>(<code>chart</code>: <a href="/docs/3.3.2/api/classes/chart.html"><em>Chart</em></a><<code>"bar"</code> | <code>"line"</code> | <code>"scatter"</code> | <code>"bubble"</code> | <code>"pie"</code> | <code>"doughnut"</code> | <code>"polarArea"</code> | <code>"radar"</code>, (number | <a href="/docs/3.3.2/api/interfaces/scatterdatapoint.html"><em>ScatterDataPoint</em></a> | <a href="/docs/3.3.2/api/interfaces/bubbledatapoint.html"><em>BubbleDataPoint</em></a>)[], unknown>, <code>type</code>: <em>string</em>, <code>listener</code>: (<code>e</code>: <a href="/docs/3.3.2/api/interfaces/chartevent.html"><em>ChartEvent</em></a>) => <em>void</em>): <em>void</em></p> <p>Registers the specified listener on the given chart.</p> <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>chart</code></td> <td style="text-align:left;"><a href="/docs/3.3.2/api/classes/chart.html"><em>Chart</em></a><<code>"bar"</code> | <code>"line"</code> | <code>"scatter"</code> | <code>"bubble"</code> | <code>"pie"</code> | <code>"doughnut"</code> | <code>"polarArea"</code> | <code>"radar"</code>, (number | <a href="/docs/3.3.2/api/interfaces/scatterdatapoint.html"><em>ScatterDataPoint</em></a> | <a href="/docs/3.3.2/api/interfaces/bubbledatapoint.html"><em>BubbleDataPoint</em></a>)[], unknown></td> <td style="text-align:left;">Chart from which to listen for event</td></tr> <tr><td style="text-align:left;"><code>type</code></td> <td style="text-align:left;"><em>string</em></td> <td style="text-align:left;">The (<a href="/docs/3.3.2/api/interfaces/chartevent.html">ChartEvent</a>) type to listen for</td></tr> <tr><td style="text-align:left;"><code>listener</code></td> <td style="text-align:left;">(<code>e</code>: <a href="/docs/3.3.2/api/interfaces/chartevent.html"><em>ChartEvent</em></a>) => <em>void</em></td> <td style="text-align:left;">Receives a notification (an object that implements the <a href="/docs/3.3.2/api/interfaces/chartevent.html">ChartEvent</a> interface) when an event of the specified type occurs.</td></tr></tbody></table> <p><strong>Returns:</strong> <em>void</em></p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <p>Defined in: <a href="https://github.com/chartjs/Chart.js/blob/b9389f8/types/index.esm.d.ts#L1926" target="_blank" rel="noopener noreferrer">index.esm.d.ts:1926<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="getdevicepixelratio"><a href="#getdevicepixelratio" class="header-anchor">#</a> getDevicePixelRatio</h3> <p>▸ <strong>getDevicePixelRatio</strong>(): <em>number</em></p> <p><strong>Returns:</strong> <em>number</em></p> <p>the current devicePixelRatio of the device this platform is connected to.</p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <p>Defined in: <a href="https://github.com/chartjs/Chart.js/blob/b9389f8/types/index.esm.d.ts#L1937" target="_blank" rel="noopener noreferrer">index.esm.d.ts:1937<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="getmaximumsize"><a href="#getmaximumsize" class="header-anchor">#</a> getMaximumSize</h3> <p>▸ <strong>getMaximumSize</strong>(<code>canvas</code>: HTMLCanvasElement, <code>width?</code>: <em>number</em>, <code>height?</code>: <em>number</em>, <code>aspectRatio?</code>: <em>number</em>): <em>object</em></p> <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> <th style="text-align:left;">Description</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>canvas</code></td> <td style="text-align:left;">HTMLCanvasElement</td> <td style="text-align:left;">The canvas for which to calculate the maximum size</td></tr> <tr><td style="text-align:left;"><code>width?</code></td> <td style="text-align:left;"><em>number</em></td> <td style="text-align:left;">-</td></tr> <tr><td style="text-align:left;"><code>height?</code></td> <td style="text-align:left;"><em>number</em></td> <td style="text-align:left;">-</td></tr> <tr><td style="text-align:left;"><code>aspectRatio?</code></td> <td style="text-align:left;"><em>number</em></td> <td style="text-align:left;">-</td></tr></tbody></table> <p><strong>Returns:</strong> <em>object</em></p> <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>height</code></td> <td style="text-align:left;"><em>number</em></td></tr> <tr><td style="text-align:left;"><code>width</code></td> <td style="text-align:left;"><em>number</em></td></tr></tbody></table> <p>the maximum size available.</p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <p>Defined in: <a href="https://github.com/chartjs/Chart.js/blob/b9389f8/types/index.esm.d.ts#L1945" target="_blank" rel="noopener noreferrer">index.esm.d.ts:1945<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="isattached"><a href="#isattached" class="header-anchor">#</a> isAttached</h3> <p>▸ <strong>isAttached</strong>(<code>canvas</code>: HTMLCanvasElement): <em>boolean</em></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>canvas</code></td> <td style="text-align:left;">HTMLCanvasElement</td></tr></tbody></table> <p><strong>Returns:</strong> <em>boolean</em></p> <p>true if the canvas is attached to the platform, false if not.</p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <p>Defined in: <a href="https://github.com/chartjs/Chart.js/blob/b9389f8/types/index.esm.d.ts#L1950" target="_blank" rel="noopener noreferrer">index.esm.d.ts:1950<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="releasecontext"><a href="#releasecontext" class="header-anchor">#</a> releaseContext</h3> <p>▸ <strong>releaseContext</strong>(<code>context</code>: CanvasRenderingContext2D): <em>boolean</em></p> <p>Called at chart destruction time, releases any resources associated to the context
previously returned by the acquireContext() method.</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> <th style="text-align:left;">Description</th></tr></thead> <tbody><tr><td style="text-align:left;"><code>context</code></td> <td style="text-align:left;">CanvasRenderingContext2D</td> <td style="text-align:left;">The context2d instance</td></tr></tbody></table> <p><strong>Returns:</strong> <em>boolean</em></p> <p>true if the method succeeded, else false</p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <p>Defined in: <a href="https://github.com/chartjs/Chart.js/blob/b9389f8/types/index.esm.d.ts#L1918" target="_blank" rel="noopener noreferrer">index.esm.d.ts:1918<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="removeeventlistener"><a href="#removeeventlistener" class="header-anchor">#</a> removeEventListener</h3> <p>▸ <strong>removeEventListener</strong>(<code>chart</code>: <a href="/docs/3.3.2/api/classes/chart.html"><em>Chart</em></a><<code>"bar"</code> | <code>"line"</code> | <code>"scatter"</code> | <code>"bubble"</code> | <code>"pie"</code> | <code>"doughnut"</code> | <code>"polarArea"</code> | <code>"radar"</code>, (number | <a href="/docs/3.3.2/api/interfaces/scatterdatapoint.html"><em>ScatterDataPoint</em></a> | <a href="/docs/3.3.2/api/interfaces/bubbledatapoint.html"><em>BubbleDataPoint</em></a>)[], unknown>, <code>type</code>: <em>string</em>, <code>listener</code>: (<code>e</code>: <a href="/docs/3.3.2/api/interfaces/chartevent.html"><em>ChartEvent</em></a>) => <em>void</em>): <em>void</em></p> <p>Removes the specified listener previously registered with addEventListener.</p> <h4 id="parameters-6"><a href="#parameters-6" 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>chart</code></td> <td style="text-align:left;"><a href="/docs/3.3.2/api/classes/chart.html"><em>Chart</em></a><<code>"bar"</code> | <code>"line"</code> | <code>"scatter"</code> | <code>"bubble"</code> | <code>"pie"</code> | <code>"doughnut"</code> | <code>"polarArea"</code> | <code>"radar"</code>, (number | <a href="/docs/3.3.2/api/interfaces/scatterdatapoint.html"><em>ScatterDataPoint</em></a> | <a href="/docs/3.3.2/api/interfaces/bubbledatapoint.html"><em>BubbleDataPoint</em></a>)[], unknown></td> <td style="text-align:left;">Chart from which to remove the listener</td></tr> <tr><td style="text-align:left;"><code>type</code></td> <td style="text-align:left;"><em>string</em></td> <td style="text-align:left;">The (<a href="/docs/3.3.2/api/interfaces/chartevent.html">ChartEvent</a>) type to remove</td></tr> <tr><td style="text-align:left;"><code>listener</code></td> <td style="text-align:left;">(<code>e</code>: <a href="/docs/3.3.2/api/interfaces/chartevent.html"><em>ChartEvent</em></a>) => <em>void</em></td> <td style="text-align:left;">The listener function to remove from the event target.</td></tr></tbody></table> <p><strong>Returns:</strong> <em>void</em></p> <p>Inherited from: <a href="/docs/3.3.2/api/classes/baseplatform.html">BasePlatform</a></p> <p>Defined in: <a href="https://github.com/chartjs/Chart.js/blob/b9389f8/types/index.esm.d.ts#L1933" target="_blank" rel="noopener noreferrer">index.esm.d.ts:1933<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/3.3.2/api/classes/baseplatform.html" class="prev">
BasePlatform
</a></span> <span class="next"><a href="/docs/3.3.2/api/classes/chart.html">
Chart
</a>
→
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/docs/3.3.2/assets/js/app.f414e150.js" defer></script><script src="/docs/3.3.2/assets/js/2.db7fa539.js" defer></script><script src="/docs/3.3.2/assets/js/14.61162085.js" defer></script>
</body>
</html>